From 33a6317669ab0228a78c8644ab2d4cffc8518ebe Mon Sep 17 00:00:00 2001 From: Thomas Constans Date: Wed, 11 Oct 2023 10:44:50 +0200 Subject: [PATCH] added ansible reconfiguration --- setup.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/setup.yml b/setup.yml index 3e4a465..a416195 100644 --- a/setup.yml +++ b/setup.yml @@ -43,4 +43,16 @@ key: "{{ item }}" loop: - "{{ lookup( 'file', '~/.ssh/id_rsa.pub' ) }}" - - "https://infra.opendoor.fr/id_rsa.pub" \ No newline at end of file + - "https://infra.opendoor.fr/id_rsa.pub" + + - name: reconfigure ansible + community.general.ini_file: + option: "{{ item.option }}" + value: "{{ item.value }}" + section: "{{ item.section }}" + path: /etc/ansible/ansible.cfg + loop: + - { option: "remote_user", value: "ansible", section: "defaults" } + - { option: "become_ask_pass", value: "false", section: "privilege_escalation" } + - { option: "ask_pass", value: "false", section: "defaults" } + delegate_to: localhost