changed syntax

This commit is contained in:
2025-10-01 15:22:11 +02:00
parent a5944c69fa
commit e831be02cc
3 changed files with 12 additions and 10 deletions

View File

@@ -11,12 +11,6 @@
ansible_pull_marker_file: /var/tmp/ansible_pull.last_run
pre_tasks:
- name: pre-run | set global playbook directory fact
set_fact:
ansible_pull_playbook_dir: "{{ playbook_dir }}"
cacheable: true
tags: always
- name: pre-run | get status of marker file
stat:
path: "{{ ansible_pull_marker_file }}"

View File

@@ -22,7 +22,11 @@
user: "lowpriv"
- name: users | lowpriv | import ssh configuration tasks from base role
import_tasks: "{{ ansible_pull_playbook_dir }}/roles/base/tasks/users/install_public_keys.yml"
include_role:
name: base
tasks_from: users/install_public_keys.yml
- name: users | lowpriv | import known_hosts task from base role
import_tasks: "{{ ansible_pull_playbook_dir }}/roles/base/tasks/users/install_known_hosts.yml"
include_role:
name: base
tasks_from: users/install_known_hosts.yml

View File

@@ -22,7 +22,11 @@
user: "sshjumpuser"
- name: users | sshjumpuser | import ssh configuration tasks from base role
import_tasks: "{{ ansible_pull_playbook_dir }}/roles/base/tasks/users/install_public_keys.yml"
include_role:
name: base
tasks_from: users/install_public_keys.yml
- name: users | sshjumpuser | import known_hosts task from base role
import_tasks: "{{ ansible_pull_playbook_dir }}/roles/base/tasks/users/install_known_hosts.yml"
include_role:
name: base
tasks_from: users/install_known_hosts.yml