Pārlūkot izejas kodu

fix typo in stat check, rename agent-config.yaml to reflect it is a SNO one

Grega Bremec 3 dienas atpakaļ
vecāks
revīzija
8de821fdb6
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 1 1
      52-coreos-installer.yml
  2. 2 2
      62-agent-installation.yml

+ 1 - 1
52-coreos-installer.yml

@@ -158,7 +158,7 @@
       ansible.builtin.command:
         cmd: coreos-installer iso ignition embed -fi ./embed/bootstrap-in-place-for-live-iso.ign -o sno-embedded-cfg.iso {{ ansible_facts['user_dir'] }}/Downloads/rhcos-418.94.202501221327-0-live.x86_64.iso
         chdir: "{{ ansible_facts['user_dir'] }}"
-      when: not custom_iso.exists
+      when: not custom_iso.stat.exists
 
 - name: Copy the ISO file to target machine and write it to /dev/sdb
   hosts: master01.ocp4.example.com

+ 2 - 2
62-agent-installation.yml

@@ -91,7 +91,7 @@
     - name: Ensure agent-config is there.
       ansible.builtin.template:
         src: templates/agent-config-template.yaml.j2
-        dest: "{{ ansible_facts['user_dir'] }}/agent-config.yaml"
+        dest: "{{ ansible_facts['user_dir'] }}/agent-config-sno.yaml"
         mode: 0644
         owner: student
         group: student
@@ -123,7 +123,7 @@
 
     - name: The same, but for agent-config.yaml.
       ansible.builtin.copy:
-        src: "{{ ansible_facts['user_dir'] }}/agent-config.yaml"
+        src: "{{ ansible_facts['user_dir'] }}/agent-config-sno.yaml"
         remote_src: yes
         dest: "{{ ansible_facts['user_dir'] }}/agent/agent-config.yaml"
         mode: 0644