From personal use
- pseudo synchronize devices
- ansible all -a "sudo ntpdate 1.be.be.pool.ntp.org" --ask-sudo-pass
ansible-playbook -C myPlaybook.yml
only check, no actual change done
ansible-playbook -l targetHost myPlaybook.yml
limit the hosts to only the listed ones
ansible-playbook -D myPlaybook.yml
shows diffs
- great to check short modifications to configuration files
Process so far
- pick a managing computer (kind of master with its minions)
- git clone https://github.com/ansible/ansible
- or apt-get depending on your desire to be on the bleeding edge (devel)
- add minions to inventory file
- install sshd on all minions
- ssh-copy-id to all minions
- consider for each minion if the Ansible user has to be sudoer or not
- creating playbooks e.g. lighttpd.yml
- using
become: true
to enable privilege escalation
- using
--ask-sudo-pass
when running a playbook requiring root
- cf doc recommending to type the password rather than forcing it somewhere somehow
- running playbooks
To explore
Note
My notes on Tools gather what I know or want to know. Consequently they are not and will never be complete references. For this, official manuals and online communities provide much better answers.