|
|
@ -3,9 +3,10 @@
|
|
|
|
gather_facts: false
|
|
|
|
gather_facts: false
|
|
|
|
# FIXME Resetting the connection shouldn't require credentials
|
|
|
|
# FIXME Resetting the connection shouldn't require credentials
|
|
|
|
# https://github.com/mitogen-hq/mitogen/issues/1132
|
|
|
|
# https://github.com/mitogen-hq/mitogen/issues/1132
|
|
|
|
become: true
|
|
|
|
become: "{{ 'true' | trim }}"
|
|
|
|
become_exe: "{{ 'sudo' | trim }}"
|
|
|
|
become_exe: "{{ 'sudo' | trim }}"
|
|
|
|
become_flags: "{{ '--set-home --stdin --non-interactive' | trim }}"
|
|
|
|
become_flags: "{{ '--set-home --stdin --non-interactive' | trim }}"
|
|
|
|
|
|
|
|
become_method: "{{ 'sudo' | trim }}"
|
|
|
|
become_user: "{{ 'root' | trim }}"
|
|
|
|
become_user: "{{ 'root' | trim }}"
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
- name: Reset connection to target that will be delegate_to
|
|
|
|
- name: Reset connection to target that will be delegate_to
|
|
|
@ -16,9 +17,10 @@
|
|
|
|
gather_facts: false
|
|
|
|
gather_facts: false
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
- name: Templated become by task keywords, with delegate_to
|
|
|
|
- name: Templated become by task keywords, with delegate_to
|
|
|
|
become: true
|
|
|
|
become: "{{ 'true' | trim }}"
|
|
|
|
become_exe: "{{ 'sudo' | trim }}"
|
|
|
|
become_exe: "{{ 'sudo' | trim }}"
|
|
|
|
become_flags: "{{ '--set-home --stdin --non-interactive' | trim }}"
|
|
|
|
become_flags: "{{ '--set-home --stdin --non-interactive' | trim }}"
|
|
|
|
|
|
|
|
become_method: "{{ 'sudo' | trim }}"
|
|
|
|
become_user: "{{ 'root' | trim }}"
|
|
|
|
become_user: "{{ 'root' | trim }}"
|
|
|
|
delegate_to: "{{ groups.tt_become_bare[0] }}"
|
|
|
|
delegate_to: "{{ groups.tt_become_bare[0] }}"
|
|
|
|
command:
|
|
|
|
command:
|
|
|
@ -36,9 +38,10 @@
|
|
|
|
gather_facts: false
|
|
|
|
gather_facts: false
|
|
|
|
# FIXME Resetting the connection shouldn't require credentials
|
|
|
|
# FIXME Resetting the connection shouldn't require credentials
|
|
|
|
# https://github.com/mitogen-hq/mitogen/issues/1132
|
|
|
|
# https://github.com/mitogen-hq/mitogen/issues/1132
|
|
|
|
become: true
|
|
|
|
become: "{{ 'true' | trim }}"
|
|
|
|
become_exe: "{{ 'sudo' | trim }}"
|
|
|
|
become_exe: "{{ 'sudo' | trim }}"
|
|
|
|
become_flags: "{{ '--set-home --stdin --non-interactive' | trim }}"
|
|
|
|
become_flags: "{{ '--set-home --stdin --non-interactive' | trim }}"
|
|
|
|
|
|
|
|
become_method: "{{ 'sudo' | trim }}"
|
|
|
|
become_user: "{{ 'mitogen__pw_required' | trim }}"
|
|
|
|
become_user: "{{ 'mitogen__pw_required' | trim }}"
|
|
|
|
vars:
|
|
|
|
vars:
|
|
|
|
ansible_become_pass: "{{ 'pw_required_password' | trim }}"
|
|
|
|
ansible_become_pass: "{{ 'pw_required_password' | trim }}"
|
|
|
@ -57,9 +60,10 @@
|
|
|
|
setup:
|
|
|
|
setup:
|
|
|
|
|
|
|
|
|
|
|
|
- name: Templated become by task keywords, with delegate_to
|
|
|
|
- name: Templated become by task keywords, with delegate_to
|
|
|
|
become: true
|
|
|
|
become: "{{ 'true' | trim }}"
|
|
|
|
become_exe: "{{ 'sudo' | trim }}"
|
|
|
|
become_exe: "{{ 'sudo' | trim }}"
|
|
|
|
become_flags: "{{ '--set-home --stdin --non-interactive' | trim }}"
|
|
|
|
become_flags: "{{ '--set-home --stdin --non-interactive' | trim }}"
|
|
|
|
|
|
|
|
become_method: "{{ 'sudo' | trim }}"
|
|
|
|
become_user: "{{ 'mitogen__pw_required' | trim }}"
|
|
|
|
become_user: "{{ 'mitogen__pw_required' | trim }}"
|
|
|
|
delegate_to: "{{ groups.tt_become_bare[0] }}"
|
|
|
|
delegate_to: "{{ groups.tt_become_bare[0] }}"
|
|
|
|
vars:
|
|
|
|
vars:
|
|
|
|