fix runas instruction
This commit is contained in:
parent
81c39ab5a7
commit
ca2bd9cbc7
2 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@
|
||||||
- name: 'Install SSH User Keys'
|
- name: 'Install SSH User Keys'
|
||||||
ansible.windows.win_shell: 'C:\Users\{{ win_sshd_otheruser }}\.ansible\ssh_userkeys.ps1'
|
ansible.windows.win_shell: 'C:\Users\{{ win_sshd_otheruser }}\.ansible\ssh_userkeys.ps1'
|
||||||
become: true
|
become: true
|
||||||
become_method: runas
|
become_method: ansible.builtin.runas
|
||||||
become_user: "{{ win_sshd_otheruser }}"
|
become_user: "{{ win_sshd_otheruser }}"
|
||||||
vars:
|
vars:
|
||||||
ansible_become_pass: '{{ win_sshd_otherusepassword }}'
|
ansible_become_pass: '{{ win_sshd_otherusepassword }}'
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
script: "[System.IO.Directory]::CreateDirectory('{{ item }}')"
|
script: "[System.IO.Directory]::CreateDirectory('{{ item }}')"
|
||||||
changed_when: _fw.changed
|
changed_when: _fw.changed
|
||||||
become: true
|
become: true
|
||||||
become_method: runas
|
become_method: ansible.builtin.runas
|
||||||
become_user: "{{ win_sshd_otheruser }}"
|
become_user: "{{ win_sshd_otheruser }}"
|
||||||
vars:
|
vars:
|
||||||
ansible_become_pass: '{{ win_sshd_otherusepassword }}'
|
ansible_become_pass: '{{ win_sshd_otherusepassword }}'
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
script: "attrib +h {{ item }}"
|
script: "attrib +h {{ item }}"
|
||||||
changed_when: _fw.changed
|
changed_when: _fw.changed
|
||||||
become: true
|
become: true
|
||||||
become_method: runas
|
become_method: ansible.builtin.runas
|
||||||
become_user: "{{ win_sshd_otheruser }}"
|
become_user: "{{ win_sshd_otheruser }}"
|
||||||
vars:
|
vars:
|
||||||
ansible_become_pass: '{{ win_sshd_otherusepassword }}'
|
ansible_become_pass: '{{ win_sshd_otherusepassword }}'
|
||||||
|
|
Loading…
Reference in a new issue