changed path to more robust version
This commit is contained in:
@@ -11,6 +11,11 @@
|
|||||||
ansible_pull_marker_file: /var/tmp/ansible_pull.last_run
|
ansible_pull_marker_file: /var/tmp/ansible_pull.last_run
|
||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: pre-run | set global playbook directory fact
|
||||||
|
set_fact:
|
||||||
|
ansible_pull_playbook_dir: "{{ playbook_dir }}"
|
||||||
|
tags: always
|
||||||
|
|
||||||
- name: pre-run | get status of marker file
|
- name: pre-run | get status of marker file
|
||||||
stat:
|
stat:
|
||||||
path: "{{ ansible_pull_marker_file }}"
|
path: "{{ ansible_pull_marker_file }}"
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
user: "lowpriv"
|
user: "lowpriv"
|
||||||
|
|
||||||
- name: users | lowpriv | import ssh configuration tasks from base role
|
- name: users | lowpriv | import ssh configuration tasks from base role
|
||||||
import_tasks: "{{ ansible_playbook_dir }}/roles/base/tasks/users/install_public_keys.yml"
|
import_tasks: "{{ ansible_pull_playbook_dir }}/roles/base/tasks/users/install_public_keys.yml"
|
||||||
|
|
||||||
- name: users | lowpriv | import known_hosts task from base role
|
- name: users | lowpriv | import known_hosts task from base role
|
||||||
import_tasks: "{{ ansible_playbook_dir }}/roles/base/tasks/users/install_known_hosts.yml"
|
import_tasks: "{{ ansible_pull_playbook_dir }}/roles/base/tasks/users/install_known_hosts.yml"
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
user: "sshjumpuser"
|
user: "sshjumpuser"
|
||||||
|
|
||||||
- name: users | sshjumpuser | import ssh configuration tasks from base role
|
- name: users | sshjumpuser | import ssh configuration tasks from base role
|
||||||
import_tasks: "{{ ansible_playbook_dir }}/roles/base/tasks/users/install_public_keys.yml"
|
import_tasks: "{{ ansible_pull_playbook_dir }}/roles/base/tasks/users/install_public_keys.yml"
|
||||||
|
|
||||||
- name: users | sshjumpuser | import known_hosts task from base role
|
- name: users | sshjumpuser | import known_hosts task from base role
|
||||||
import_tasks: "{{ ansible_playbook_dir }}/roles/base/tasks/users/install_known_hosts.yml"
|
import_tasks: "{{ ansible_pull_playbook_dir }}/roles/base/tasks/users/install_known_hosts.yml"
|
||||||
Reference in New Issue
Block a user