become method defined at host level

main
Ricard Illa 2022-09-06 10:52:10 +02:00
parent e6690ae2d1
commit 91a5a975e1
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,6 @@
- name: snitch deployment - name: snitch deployment
hosts: snitch hosts: snitch
become: true become: true
become_method: doas
roles: roles:
- basic - basic
- users - users
@ -21,7 +20,6 @@
- name: caladan deployment - name: caladan deployment
hosts: caladan hosts: caladan
become: true become: true
become_method: doas
roles: roles:
- basic - basic
- users - users
@ -38,7 +36,6 @@
- name: narwhal deployment - name: narwhal deployment
hosts: narwhal hosts: narwhal
become: true become: true
become_method: sudo
roles: roles:
- basic - basic
- users - users
@ -53,7 +50,6 @@
- name: fugu deployment - name: fugu deployment
hosts: fugu hosts: fugu
become: true become: true
become_method: doas
roles: roles:
- basic - basic
- users - users

View File

@ -7,21 +7,25 @@ all:
ansible_user: ansible ansible_user: ansible
ansible_port: 22 ansible_port: 22
ansible_python_interpreter: /usr/bin/python3 ansible_python_interpreter: /usr/bin/python3
ansible_become_method: doas
caladan: caladan:
ansible_host: caladan ansible_host: caladan
ansible_user: ansible ansible_user: ansible
ansible_port: 22 ansible_port: 22
ansible_python_interpreter: /usr/bin/python3 ansible_python_interpreter: /usr/bin/python3
ansible_become_method: doas
narwhal: narwhal:
ansible_host: narwhal ansible_host: narwhal
ansible_user: ansible ansible_user: ansible
ansible_port: 22 ansible_port: 22
ansible_python_interpreter: /usr/bin/python3 ansible_python_interpreter: /usr/bin/python3
ansible_become_method: sudo
fugu: fugu:
ansible_host: fugu ansible_host: fugu
ansible_user: ansible ansible_user: ansible
ansible_port: 22 ansible_port: 22
ansible_python_interpreter: /usr/local/bin/python3 ansible_python_interpreter: /usr/local/bin/python3
ansible_become_method: doas