소스 검색

fix typos

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: