Merge "Fix tasks in check mode"
This commit is contained in:
commit
1ef3efc61f
@ -378,6 +378,7 @@
|
|||||||
failed_when: outputs.rc not in [0, 2]
|
failed_when: outputs.rc not in [0, 2]
|
||||||
tags:
|
tags:
|
||||||
- host_config
|
- host_config
|
||||||
|
ignore_errors: "{{ ansible_check_mode }}"
|
||||||
|
|
||||||
######################################
|
######################################
|
||||||
# Generate config via docker-puppet.py
|
# Generate config via docker-puppet.py
|
||||||
@ -410,6 +411,7 @@
|
|||||||
failed_when: outputs.rc != 0
|
failed_when: outputs.rc != 0
|
||||||
tags:
|
tags:
|
||||||
- container_config
|
- container_config
|
||||||
|
ignore_errors: "{{ ansible_check_mode }}"
|
||||||
|
|
||||||
- name: Diff docker-puppet.py puppet-generated changes for check mode
|
- name: Diff docker-puppet.py puppet-generated changes for check mode
|
||||||
shell: |
|
shell: |
|
||||||
|
@ -461,6 +461,7 @@ outputs:
|
|||||||
command: /usr/bin/rpm -q libvirt-daemon
|
command: /usr/bin/rpm -q libvirt-daemon
|
||||||
failed_when: false
|
failed_when: false
|
||||||
register: libvirt_installed
|
register: libvirt_installed
|
||||||
|
check_mode: no
|
||||||
- name: make sure libvirt services are disabled
|
- name: make sure libvirt services are disabled
|
||||||
service:
|
service:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
@ -474,6 +474,7 @@ outputs:
|
|||||||
src: /var/log/swift
|
src: /var/log/swift
|
||||||
dest: /var/log/containers/swift
|
dest: /var/log/containers/swift
|
||||||
state: link
|
state: link
|
||||||
|
ignore_errors: "{{ ansible_check_mode }}"
|
||||||
- name: swift logs readme
|
- name: swift logs readme
|
||||||
copy:
|
copy:
|
||||||
dest: /var/log/swift/readme.txt
|
dest: /var/log/swift/readme.txt
|
||||||
|
@ -89,11 +89,13 @@ outputs:
|
|||||||
state: file
|
state: file
|
||||||
suffix: -prepare-param
|
suffix: -prepare-param
|
||||||
register: prepare_param
|
register: prepare_param
|
||||||
|
check_mode: no
|
||||||
- name: Create temp file for role data
|
- name: Create temp file for role data
|
||||||
tempfile:
|
tempfile:
|
||||||
state: file
|
state: file
|
||||||
suffix: -role-data
|
suffix: -role-data
|
||||||
register: role_data
|
register: role_data
|
||||||
|
check_mode: no
|
||||||
- name: Write ContainerImagePrepare parameter file
|
- name: Write ContainerImagePrepare parameter file
|
||||||
copy:
|
copy:
|
||||||
dest: "{{ '{{' }} prepare_param.path {{ '}}' }}"
|
dest: "{{ '{{' }} prepare_param.path {{ '}}' }}"
|
||||||
@ -117,7 +119,9 @@ outputs:
|
|||||||
file:
|
file:
|
||||||
dest: "{{ '{{' }} prepare_param.path {{ '}}' }}"
|
dest: "{{ '{{' }} prepare_param.path {{ '}}' }}"
|
||||||
state: absent
|
state: absent
|
||||||
|
check_mode: no
|
||||||
- name: Delete role file
|
- name: Delete role file
|
||||||
file:
|
file:
|
||||||
dest: "{{ '{{' }} role_data.path {{ '}}' }}"
|
dest: "{{ '{{' }} role_data.path {{ '}}' }}"
|
||||||
state: absent
|
state: absent
|
||||||
|
check_mode: no
|
||||||
|
Loading…
Reference in New Issue
Block a user