lets reconfigure ansible with ansible

This commit is contained in:
2023-06-06 13:55:27 +02:00
parent 173344760e
commit ee15d0139c

View File

@@ -44,3 +44,9 @@ ansible cibles -o -m community.general.sudoers -a 'name="ansible" user=ansible c
```bash ```bash
ansible cibles -u formation -k -m ansible.posix.authorized_key -a 'key={{ lookup( "file", "~/.ssh/id_rsa.pub") }} user=ansible' ansible cibles -u formation -k -m ansible.posix.authorized_key -a 'key={{ lookup( "file", "~/.ssh/id_rsa.pub") }} user=ansible'
``` ```
```bash
ansible localhost -m community.general.ini_file -a 'option=remote_user value=ansible section=defaults path=/etc/ansible/ansible.cfg'
ansible localhost -m community.general.ini_file -a 'option=ask_pass value=False section=defaults path=/etc/ansible/ansible.cfg'
ansible localhost -m community.general.ini_file -a 'option=become_ask_pass value=False section=privilege_escalation path=/etc/ansible/ansible.cfg'
```