Skip to content

Commit 3a5e162

Browse files
committed
Set gather_facts to true for post deployment
some issues are caused by missing facts after new post deployment seperation was introduced, setting gather_facts to true for post deployment to avoid those issues
1 parent d7bf8dd commit 3a5e162

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

post-deployment.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
- name: Run Post-deployment admin setup steps, test, and compliance scan
22
hosts: "{{ cifmw_target_host | default('localhost') }}"
3-
gather_facts: false
3+
gather_facts: true
44
tasks:
55
- name: Run cifmw_setup admin_setup.yml
66
ansible.builtin.import_role:
@@ -44,7 +44,7 @@
4444

4545
- name: Run hooks and inject status flag
4646
hosts: "{{ cifmw_target_host | default('localhost') }}"
47-
gather_facts: false
47+
gather_facts: true
4848
tasks:
4949
- name: Run pre_end hooks
5050
tags:
@@ -54,12 +54,6 @@
5454
ansible.builtin.import_role:
5555
name: run_hook
5656

57-
- name: Gather minimal facts for ansible_user_dir
58-
ansible.builtin.setup:
59-
gather_subset:
60-
- min
61-
filter: "ansible_user_dir"
62-
6357
- name: Inject success flag
6458
ansible.builtin.file:
6559
path: "{{ ansible_user_dir }}/cifmw-success"

0 commit comments

Comments
 (0)