Quellcode durchsuchen

move prep into the main playbook

Grega Bremec vor 1 Monat
Ursprung
Commit
b4837779ae
2 geänderte Dateien mit 13 neuen und 15 gelöschten Zeilen
  1. 0 15
      playbooks/60-agent-inst-prep.yml
  2. 13 0
      playbooks/62-agent-installation.yml

+ 0 - 15
playbooks/60-agent-inst-prep.yml

@@ -1,15 +0,0 @@
----
-# Perform the preparation tasks for agent-based installation.
-# Basically the same as 50-coreos-inst-prep.yml plus a couple of steps.
-- import_playbook: 50-install-prepare.yml
-
-- name: Additional tasks for agent installation.
-  hosts: workstation.lab.example.com
-  become: yes
-  gather_subset: min
-  tasks:
-    - name: Ensure nmstate is installed.
-      ansible.builtin.yum:
-        name: nmstate
-        state: present
-...

+ 13 - 0
playbooks/62-agent-installation.yml

@@ -4,11 +4,24 @@
 # 
 # NOTE: If you want to skip the dangerous parts, use --skip-tags=destroy
 #
+# Perform the preparation tasks for agent-based installation.
+# Basically the same as 50-coreos-inst-prep.yml plus a couple of steps.
+#
+# TODO: somehow skip the reset of the DNS zones and DHCP config.
+- import_playbook: 50-install-prepare.yml
+
 - name: Prepare the files required for a SNO installation using agent install.
   hosts: workstation.lab.example.com
   become: no
   gather_subset: min
   tasks:
+    # NOTE: This one is actually a prep item, but it's only needed for agent installs.
+    - name: Ensure nmstate is installed.
+      become: yes
+      ansible.builtin.yum:
+        name: nmstate
+        state: present
+
     - name: Check the dependency status.
       ansible.builtin.stat:
         path: "{{ ansible_facts['user_dir'] }}/{{ item }}"