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 @@
name: docker
enabled: yes
state: started
when: ansible_virtualization_type != 'docker'
when: not testing
......@@ -16,14 +16,14 @@
become: true
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
become: true
blockinfile:
path: /etc/hosts
marker: '# {mark} MyCard Init block'
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
become: true
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