Grega Bremec 1 年間 前
コミット
736bd22e25
2 ファイル変更2 行追加1 行削除
  1. 1 0
      pre-flight.yml
  2. 1 1
      roles/add-hosts/tasks/main.yml

+ 1 - 0
pre-flight.yml

@@ -13,6 +13,7 @@
 - name: Class DNS changes on bastion.
   hosts: bastion.lab.example.com
   gather_subset: min
+  roles:
     - role: add-hosts
       tags: fix
 ...

+ 1 - 1
roles/add-hosts/tasks/main.yml

@@ -10,7 +10,7 @@
 - name: Make sure hostnames are in /etc/hosts
   ansible.builtin.lineinfile:
     path: /etc/hosts
-    regexp: "^172.25.250.9\s+"
+    regexp: '^172.25.250.9\s+'
     line: "172.25.250.9    workstation.lab.example.com workstation sso.lab.example.com idm.lab.example.com"
     state: present
   notify: