Commit bd40b869 authored by nanahira's avatar nanahira

fix

parent ec723b82
Pipeline #2753 failed with stage
in 10 seconds
...@@ -9,4 +9,4 @@ ...@@ -9,4 +9,4 @@
blockinfile: blockinfile:
path: /etc/fstab path: /etc/fstab
block: '/swapfile none swap defaults 0 0' block: '/swapfile none swap defaults 0 0'
marker: '# Generated by MyCard Init' marker: '# {mark} MyCard Init block'
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
become: true become: true
blockinfile: blockinfile:
path: /etc/hosts path: /etc/hosts
marker: '# Generated by MyCard Init' marker: '# {mark} MyCard Init block'
block: "{{ ansible_default_ipv4.address }} {{ inventory_hostname }} {{ inventory_hostname_short }}" block: "{{ ansible_default_ipv4.address }} {{ inventory_hostname }} {{ inventory_hostname_short }}"
when: inventory_hostname_short != '10' and inventory_hostname_short != '172' and inventory_hostname_short != '192' when: inventory_hostname_short != '10' and inventory_hostname_short != '172' and inventory_hostname_short != '192'
- name: clean aliyun - name: clean aliyun
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment