Firman's Ansible repository
- Jinja 100%
| files | ||
| inventory | ||
| playbooks | ||
| roles | ||
| ansible.cfg | ||
| LICENSE | ||
| README.md | ||
M.R. Firmansyah's Ansible Repository
Setup ansible user
From firman user on workspace (control node), setup ansible user, replace vault-password with actual Ansible vault password:
$ echo 'vault-password' > ~/.ansible/vault_pass
$ ansible-playbook -K -i inventory playbooks/00_setup_ansible_user_control_node.yml
Creating firman user on managed node (skip if user already exist):
# useradd -mc 'M.R. Firmansyah' -G wheel firman
Back on workspace with firman user.
Copying public key for firman user to managed node to be used by Ansible, for example host are vm1 (see inventory) with IP adress 192.168.122.58, then setup ansible user in managed node:
$ ssh-copy-id 192.168.122.58
$ ansible-playbook -K -i inventory -l vm1 playbooks/00_setup_ansible_user_managed_nodes.yml