Skip to content

Commit 5cc7fbc

Browse files
committed
add new final.yml for both fatimage and site
1 parent bb4cab1 commit 5cc7fbc

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

ansible/disable-repos.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

ansible/fatimage.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,4 @@
197197
import_playbook: "{{ hook_path if hook_path | exists else 'noop.yml' }}"
198198
when: hook_path | exists
199199

200-
- import_playbook: disable-repos.yml
201-
202-
- hosts: builder
203-
become: yes
204-
gather_facts: yes
205-
tags: finalise
206-
tasks:
207-
- name: Cleanup image
208-
import_tasks: cleanup.yml
209-
210-
- name: Shutdown Packer VM
211-
community.general.shutdown:
200+
- import_playbook: final.yml

ansible/final.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
- hosts: dnf_repos
2+
become: yes
3+
tasks:
4+
- name: Disable pulp repos
5+
ansible.builtin.include_role:
6+
name: dnf_repos
7+
tasks_from: disable_repos.yml
8+
9+
- hosts: builder
10+
become: yes
11+
gather_facts: yes
12+
tags: finalise
13+
tasks:
14+
- name: Cleanup image
15+
import_tasks: cleanup.yml
16+
17+
- name: Shutdown Packer VM
18+
community.general.shutdown:

ansible/site.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
import_playbook: "{{ hook_path if hook_path | exists else 'noop.yml' }}"
3737
when: hook_path | exists
3838

39-
- import_playbook: disable-repos.yml
39+
- import_playbook: final.yml
4040

4141
...

0 commit comments

Comments
 (0)