An ansible management container for windows infrastructure.
NOTE: the volumes mount should contain the playbook to be executed. The playbook must have a site.yml
as starting point and an inventory file production
. For more informations about ansible and windows take a look at http://docs.ansible.com/ansible/intro_windows.html .
version: '2'
services:
manage:
image: alinmear/docker-manage-windows
container_name: manage-windows
volumes:
- ./playbook:/opt/manage-windows
dns:
- 8.8.8.8
dns_search:
- example.com
environment:
- MANAGEWINDOWS_DOMAIN=example.com
- MANAGEWINDOWS_USER=administrator
- MANAGEWINDOWS_PASS=mypass
- MANAGEWINDOWS_CRON='0 0 * * *'
- MANAGEWINDOWS_KDC='kdc'
For this use the deploy playbook.
NOTE: Edit deploy.yml first, to set the domain infos at the vars section.
ansible-playbook deploy.yml -i '<host>,'
- Specify the Domain. The script will use this value to create a valid
/etc/krb5.conf
- Specify the User for Kerberos TGT
- Specify the Pass for Kerberos TGT
- The Kerberos Domain Controller. At the moment KDC and the Management Server will be the same
- Specify the intervals of execution for the playbook
- DEFAULT: '0 0 * * *'