Commit 5c5f2431 authored by nanahira's avatar nanahira

fix again

parent 74d49523
Pipeline #14127 failed with stage
in 2 minutes and 33 seconds
...@@ -117,4 +117,4 @@ ...@@ -117,4 +117,4 @@
name: docker name: docker
enabled: yes enabled: yes
state: started state: started
when: ansible_virtualization_type != 'docker' when: not testing
...@@ -16,14 +16,14 @@ ...@@ -16,14 +16,14 @@
become: true become: true
hostname: hostname:
name: "{{ inventory_hostname }}" name: "{{ inventory_hostname }}"
when: inventory_hostname_short != '10' and inventory_hostname_short != '172' and inventory_hostname_short != '192' and ansible_virtualization_type != 'docker' when: inventory_hostname_short != '10' and inventory_hostname_short != '172' and inventory_hostname_short != '192' and not testing
- name: hostname hosts - name: hostname hosts
become: true become: true
blockinfile: blockinfile:
path: /etc/hosts path: /etc/hosts
marker: '# {mark} MyCard Init block' 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' and ansible_virtualization_type != 'docker' when: inventory_hostname_short != '10' and inventory_hostname_short != '172' and inventory_hostname_short != '192' and not testing
- name: clean aliyun - name: clean aliyun
become: true become: true
shell: | shell: |
......
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