In ansible 2.2 always_run is depreciated. Switch to check_mode.
This commit is contained in:
parent
1fe7e9264d
commit
b1a2d105c9
67 changed files with 124 additions and 124 deletions
|
@ -13,7 +13,7 @@
|
|||
- include: "{{ tasks }}/persistent_cloud.yml"
|
||||
- name: gather facts
|
||||
setup:
|
||||
always_run: True
|
||||
check_mode: no
|
||||
ignore_errors: True
|
||||
register: facts
|
||||
- name: install python2 and dnf stuff
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
- name: check the selinux context of webdir
|
||||
command: matchpathcon /srv/web
|
||||
register: webdir
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- config
|
||||
|
|
|
@ -294,7 +294,7 @@
|
|||
- name: register origin_version_out rpm query
|
||||
shell: "rpm -q origin --qf '%{Version}'"
|
||||
register: origin_version_out
|
||||
always_run: true
|
||||
check_mode: no
|
||||
changed_when: False
|
||||
|
||||
- set_fact:
|
||||
|
|
|
@ -289,7 +289,7 @@
|
|||
# - name: register origin_version_out rpm query
|
||||
# shell: "rpm -q origin --qf '%{Version}'"
|
||||
# register: origin_version_out
|
||||
# always_run: true
|
||||
# check_mode: no
|
||||
# changed_when: False
|
||||
|
||||
# - set_fact:
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
- name: check the selinux context of the artboard dirs
|
||||
command: matchpathcon "/srv/persist/artboard/(.*)"
|
||||
register: webcontext
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
tags:
|
||||
- config
|
||||
|
|
|
@ -286,110 +286,110 @@
|
|||
# ceilometer
|
||||
- shell: source /root/keystonerc_admin && keystone service-list | grep ceilometer | awk '{print $2}'
|
||||
register: SERVICE_ID
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list | grep {{SERVICE_ID.stdout}} | awk '{print $2}'
|
||||
register: ENDPOINT_ID
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list |grep {{SERVICE_ID.stdout}} |grep -v {{ controller_publicname }} && (keystone endpoint-delete {{ENDPOINT_ID.stdout}} && keystone endpoint-create --region 'RegionOne' --service {{SERVICE_ID.stdout}} --publicurl 'https://{{ controller_publicname }}:8777' --adminurl 'https://{{ controller_publicname }}:8777' --internalurl 'https://{{ controller_publicname }}:8777' ) || true
|
||||
# cinder
|
||||
- shell: source /root/keystonerc_admin && keystone service-list | grep 'cinder ' | awk '{print $2}'
|
||||
register: SERVICE_ID
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list | grep {{SERVICE_ID.stdout}} | awk '{print $2}'
|
||||
register: ENDPOINT_ID
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list |grep {{SERVICE_ID.stdout}} |grep -v {{ controller_publicname }} && (keystone endpoint-delete {{ENDPOINT_ID.stdout}} && keystone endpoint-create --region 'RegionOne' --service {{SERVICE_ID.stdout}} --publicurl 'https://{{ controller_publicname }}:8776/v1/%(tenant_id)s' --adminurl 'https://{{ controller_publicname }}:8776/v1/%(tenant_id)s' --internalurl 'https://{{ controller_publicname }}:8776/v1/%(tenant_id)s' ) || true
|
||||
# cinderv2
|
||||
- shell: source /root/keystonerc_admin && keystone service-list | grep 'cinderv2' | awk '{print $2}'
|
||||
register: SERVICE_ID
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list | grep {{SERVICE_ID.stdout}} | awk '{print $2}'
|
||||
register: ENDPOINT_ID
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list |grep {{SERVICE_ID.stdout}} |grep -v {{ controller_publicname }} && (keystone endpoint-delete {{ENDPOINT_ID.stdout}} && keystone endpoint-create --region 'RegionOne' --service {{SERVICE_ID.stdout}} --publicurl 'https://{{ controller_publicname }}:8776/v2/%(tenant_id)s' --adminurl 'https://{{ controller_publicname }}:8776/v2/%(tenant_id)s' --internalurl 'https://{{ controller_publicname }}:8776/v2/%(tenant_id)s' ) || true
|
||||
# glance
|
||||
- shell: source /root/keystonerc_admin && keystone service-list | grep 'glance' | awk '{print $2}'
|
||||
register: SERVICE_ID
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list | grep {{SERVICE_ID.stdout}} | awk '{print $2}'
|
||||
register: ENDPOINT_ID
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list |grep {{SERVICE_ID.stdout}} |grep -v {{ controller_publicname }} && (keystone endpoint-delete {{ENDPOINT_ID.stdout}} && keystone endpoint-create --region 'RegionOne' --service {{SERVICE_ID.stdout}} --publicurl 'https://{{ controller_publicname }}:9292' --adminurl 'https://{{ controller_publicname }}:9292' --internalurl 'https://{{ controller_publicname }}:9292' ) || true
|
||||
# neutron
|
||||
- shell: source /root/keystonerc_admin && keystone service-list | grep 'neutron' | awk '{print $2}'
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
register: SERVICE_ID
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list | grep {{SERVICE_ID.stdout}} | awk '{print $2}'
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
register: ENDPOINT_ID
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list |grep {{SERVICE_ID.stdout}} |grep -v {{ controller_publicname }} && (keystone endpoint-delete {{ENDPOINT_ID.stdout}} && keystone endpoint-create --region 'RegionOne' --service {{SERVICE_ID.stdout}} --publicurl 'https://{{ controller_publicname }}:9696/' --adminurl 'https://{{ controller_publicname }}:9696/' --internalurl 'https://{{ controller_publicname }}:9696/' ) || true
|
||||
# nova
|
||||
- shell: source /root/keystonerc_admin && keystone service-list | grep 'nova ' | awk '{print $2}'
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
register: SERVICE_ID
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list | grep {{SERVICE_ID.stdout}} | awk '{print $2}'
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
register: ENDPOINT_ID
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list |grep {{SERVICE_ID.stdout}} |grep -v {{ controller_publicname }} && (keystone endpoint-delete {{ENDPOINT_ID.stdout}} && keystone endpoint-create --region 'RegionOne' --service {{SERVICE_ID.stdout}} --publicurl 'https://{{ controller_publicname }}:8774/v2/%(tenant_id)s' --adminurl 'https://{{ controller_publicname }}:8774/v2/%(tenant_id)s' --internalurl 'https://{{ controller_publicname }}:8774/v2/%(tenant_id)s' ) || true
|
||||
# nova_ec2
|
||||
- shell: source /root/keystonerc_admin && keystone service-list | grep 'nova_ec2' | awk '{print $2}'
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
register: SERVICE_ID
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list | grep {{SERVICE_ID.stdout}} | awk '{print $2}'
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
register: ENDPOINT_ID
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list |grep {{SERVICE_ID.stdout}} |grep -v {{ controller_publicname }} && (keystone endpoint-delete {{ENDPOINT_ID.stdout}} && keystone endpoint-create --region 'RegionOne' --service {{SERVICE_ID.stdout}} --publicurl 'https://{{ controller_publicname }}:8773/services/Cloud' --adminurl 'https://{{ controller_publicname }}:8773/services/Admin' --internalurl 'https://{{ controller_publicname }}:8773/services/Cloud' ) || true
|
||||
# novav3
|
||||
- shell: source /root/keystonerc_admin && keystone service-list | grep 'novav3' | awk '{print $2}'
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
register: SERVICE_ID
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list | grep {{SERVICE_ID.stdout}} | awk '{print $2}'
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
register: ENDPOINT_ID
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list |grep {{SERVICE_ID.stdout}} |grep -v {{ controller_publicname }} && (keystone endpoint-delete {{ENDPOINT_ID.stdout}} && keystone endpoint-create --region 'RegionOne' --service {{SERVICE_ID.stdout}} --publicurl 'https://{{ controller_publicname }}:8774/v3' --adminurl 'https://{{ controller_publicname }}:8774/v3' --internalurl 'https://{{ controller_publicname }}:8774/v3' ) || true
|
||||
# swift
|
||||
- shell: source /root/keystonerc_admin && keystone service-list | grep 'swift ' | awk '{print $2}'
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
register: SERVICE_ID
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list | grep {{SERVICE_ID.stdout}} | awk '{print $2}'
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
register: ENDPOINT_ID
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list |grep {{SERVICE_ID.stdout}} |grep -v {{ controller_publicname }} && (keystone endpoint-delete {{ENDPOINT_ID.stdout}} && keystone endpoint-create --region 'RegionOne' --service {{SERVICE_ID.stdout}} --publicurl 'https://{{controller_publicname}}:8080/v1/AUTH_%(tenant_id)s' --adminurl 'https://{{controller_publicname}}:8080' --internalurl 'https://{{controller_publicname}}:8080/v1/AUTH_%(tenant_id)s' ) || true
|
||||
# swift_s3
|
||||
- shell: source /root/keystonerc_admin && keystone service-list | grep 'swift_s3' | awk '{print $2}'
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
register: SERVICE_ID
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list | grep {{SERVICE_ID.stdout}} | awk '{print $2}'
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
register: ENDPOINT_ID
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list |grep {{SERVICE_ID.stdout}} |grep -v {{ controller_publicname }} && (keystone endpoint-delete {{ENDPOINT_ID.stdout}} && keystone endpoint-create --region 'RegionOne' --service {{SERVICE_ID.stdout}} --publicurl 'https://{{ controller_publicname }}:8080' --adminurl 'https://{{ controller_publicname }}:8080' --internalurl 'https://{{ controller_publicname }}:8080' ) || true
|
||||
# keystone --- !!!!! we need to use ADMIN_TOKEN here - this MUST be last before we restart OS and set up haproxy
|
||||
- shell: source /root/keystonerc_admin && keystone service-list | grep 'keystone' | awk '{print $2}'
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
register: SERVICE_ID
|
||||
- shell: source /root/keystonerc_admin && keystone endpoint-list | grep {{SERVICE_ID.stdout}} | awk '{print $2}'
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
register: ENDPOINT_ID
|
||||
- ini_file: dest=/etc/keystone/keystone.conf section=ssl option=certfile value=/etc/haproxy/fedorainfracloud.org.combined
|
||||
|
@ -1211,12 +1211,12 @@
|
|||
# default is 10 instances, 20 cores, 51200 RAM, 10 floating IPs
|
||||
- shell: source /root/keystonerc_admin && keystone tenant-list | grep 'copr ' | awk '{print $2}'
|
||||
register: TENANT_ID
|
||||
always_run: true
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
- shell: source /root/keystonerc_admin && nova quota-update --instances 40 --cores 80 --ram 300000 --floating-ips 10 --security-groups 20 {{ TENANT_ID.stdout }}
|
||||
|
||||
- shell: source /root/keystonerc_admin && keystone tenant-list | grep 'coprdev ' | awk '{print $2}'
|
||||
always_run: true
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
register: TENANT_ID
|
||||
- shell: source /root/keystonerc_admin && nova quota-update --instances 40 --cores 80 --ram 300000 --floating-ips 10 --security-groups 20 {{ TENANT_ID.stdout }}
|
||||
|
@ -1226,14 +1226,14 @@
|
|||
# nova quota-update cannot do so.
|
||||
#
|
||||
- shell: source /root/keystonerc_admin && keystone tenant-list | grep 'persistent ' | awk '{print $2}'
|
||||
always_run: true
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
register: TENANT_ID
|
||||
- shell: source /root/keystonerc_admin && nova quota-update --instances 60 --cores 150 --ram 288300 --security-groups 20 {{ TENANT_ID.stdout }}
|
||||
|
||||
# Transient quota
|
||||
- shell: source /root/keystonerc_admin && keystone tenant-list | grep 'transient ' | awk '{print $2}'
|
||||
always_run: true
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
register: TENANT_ID
|
||||
- shell: source /root/keystonerc_admin && nova quota-update --instances 30 --cores 60 --ram 102400 --security-groups 20 {{ TENANT_ID.stdout }}
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
- name: check the selinux context of webdir
|
||||
command: matchpathcon /srv/web
|
||||
register: webdir
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- config
|
||||
|
|
|
@ -49,13 +49,13 @@
|
|||
|
||||
tasks:
|
||||
- name: Create drop place for upgrades
|
||||
always_run: true
|
||||
check_mode: no
|
||||
when: ansible_virtualization_role == "host"
|
||||
file: path=/root/firmware-upgrades
|
||||
state=directory
|
||||
|
||||
- name: Check which updates to copy
|
||||
always_run: true
|
||||
check_mode: no
|
||||
stat: path=/root/firmware-upgrades/{{ item.1}}.applied
|
||||
register: is_applied_results
|
||||
when: item.0.vendor == ansible_system_vendor and item.0.product == ansible_product_name
|
||||
|
@ -64,7 +64,7 @@
|
|||
- files
|
||||
|
||||
- name: Copy updates
|
||||
always_run: true
|
||||
check_mode: no
|
||||
copy: src={{ bigfiles }}/firmware/{{ item.item.0.dirname }}/{{ item.item.1}}
|
||||
dest=/root/firmware-upgrades/
|
||||
mode=0700
|
||||
|
@ -75,7 +75,7 @@
|
|||
|
||||
# Dell updates here
|
||||
- name: Check Dell updates
|
||||
always_run: true
|
||||
check_mode: no
|
||||
command: /root/firmware-upgrades/{{ item.item.1}} -qc
|
||||
register: check_results
|
||||
failed_when: "'System(s) supported by this package' in check_results.stdout"
|
||||
|
@ -105,7 +105,7 @@
|
|||
|
||||
# We are cleaning up all files we copied, regardless of update result
|
||||
- name: Delete update files
|
||||
always_run: true
|
||||
check_mode: no
|
||||
file: path=/root/firmware-upgrades/{{ item.item.1 }}
|
||||
state=absent
|
||||
when: "'stat' in item and not item.stat.exists"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
tasks:
|
||||
- name: clean all metadata
|
||||
command: dnf clean all
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
- name: dnf update autocloud packages from main repo
|
||||
dnf: name="autocloud*" state=latest
|
||||
when: not testing
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
tasks:
|
||||
- name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%}
|
||||
command: yum clean all {%if testing%} --enablerepo=infrastructure-testing {%endif%}
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
- name: yum update tahrir/badges packages from main repo
|
||||
yum: name={{item}} state=latest
|
||||
when: not testing
|
||||
|
@ -42,7 +42,7 @@
|
|||
tasks:
|
||||
- name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%}
|
||||
command: yum clean all {%if testing%} --enablerepo=infrastructure-testing {%endif%}
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
- name: yum update tahrir/badges packages from main repo
|
||||
yum: name={{item}} state=latest
|
||||
when: not testing
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
tasks:
|
||||
- name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%}
|
||||
command: yum clean all {%if testing%} --enablerepo=infrastructure-testing {%endif%}
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
- name: yum update bodhi-server packages from main repo
|
||||
yum: name="bodhi-server" state=latest
|
||||
- name: yum update bodhi-server packages from testing repo
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
tasks:
|
||||
- name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%}
|
||||
command: yum clean all {%if testing%} --enablerepo=infrastructure-testing {%endif%}
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
- name: yum update bugzilla2fedmsg packages from main repo
|
||||
yum: name="python-bugzilla2fedmsg" state=latest
|
||||
when: not testing
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
tasks:
|
||||
- name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%}
|
||||
command: yum clean all {%if testing%} --enablerepo=infrastructure-testing {%endif%}
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
- name: yum update datagrepper packages from main repo
|
||||
yum: name="datagrepper" state=latest
|
||||
when: not testing
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
tasks:
|
||||
- name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%}
|
||||
command: yum clean all {%if testing%} --enablerepo=infrastructure-testing {%endif%}
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
- name: yum update datanommer packages from main repo
|
||||
yum: name="*datanommer*" state=latest
|
||||
when: not testing
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
tasks:
|
||||
- name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%}
|
||||
command: yum clean all {%if testing%} --enablerepo=infrastructure-testing {%endif%}
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
- name: yum update fedimg packages from main repo
|
||||
yum: name="python-fedimg" state=latest
|
||||
when: not testing
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
tasks:
|
||||
- name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%}
|
||||
command: yum clean all {%if testing%} --enablerepo=infrastructure-testing {%endif%}
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
- name: yum update fedmsg packages from the main repo
|
||||
yum: name={{item}} state=latest
|
||||
when: not testing
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
tasks:
|
||||
- name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%}
|
||||
command: yum clean all {%if testing%} --enablerepo=infrastructure-testing {%endif%}
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
- name: yum update FMN packages from main repo
|
||||
yum: name="python-fmn*" state=latest
|
||||
when: not testing
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
tasks:
|
||||
- name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%}
|
||||
command: yum clean all {%if testing%} --enablerepo=infrastructure-testing {%endif%}
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
- name: yum update hotness packages from main repo
|
||||
yum: name="the-new-hotness" state=latest
|
||||
when: not testing
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
tasks:
|
||||
- name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%}
|
||||
command: yum clean all {%if testing%} --enablerepo=infrastructure-testing {%endif%}
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
- name: yum update mote packages from main repo
|
||||
yum: name="mote" state=latest
|
||||
when: not testing
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
tasks:
|
||||
- name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%}
|
||||
command: yum clean all {%if testing%} --enablerepo=infrastructure-testing {%endif%}
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
- name: yum update fedora-packages packages from main repo
|
||||
yum: name="fedora-packages" state=latest
|
||||
when: not testing
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
pre_tasks:
|
||||
- name: clean all metadata
|
||||
command: yum clean all
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
- name: yum update PDC packages
|
||||
yum: name="{{item}}" state=latest
|
||||
with_items:
|
||||
|
@ -43,7 +43,7 @@
|
|||
pre_tasks:
|
||||
- name: clean all metadata
|
||||
command: yum clean all
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
- name: yum update PDC packages
|
||||
yum: name="{{item}}" state=latest
|
||||
with_items:
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
tasks:
|
||||
- name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%}
|
||||
command: yum clean all {%if testing%} --enablerepo=infrastructure-testing {%endif%}
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
- name: yum update statscache packages from main repo
|
||||
yum: name="statscache*" state=latest
|
||||
when: not testing
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
tasks:
|
||||
- name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%}
|
||||
command: yum clean all {%if testing%} --enablerepo=infrastructure-testing {%endif%}
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
- name: yum update fedora-tagger packages from main repo
|
||||
yum: name="fedora-tagger" state=latest
|
||||
when: not testing
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
|
||||
- name: gather facts
|
||||
setup:
|
||||
always_run: True
|
||||
check_mode: no
|
||||
ignore_errors: True
|
||||
register: facts
|
||||
|
||||
|
|
|
@ -135,7 +135,7 @@
|
|||
- name: check log file
|
||||
command: stat /var/log/askbot/askfedora.log
|
||||
register: logstat
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
failed_when: no
|
||||
tags:
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
command: redis-cli --scan --pattern tunirports
|
||||
changed_when: False
|
||||
register: tunirports
|
||||
always_run: true
|
||||
check_mode: no
|
||||
tags:
|
||||
- autocloud
|
||||
- autocloud/backend
|
||||
|
@ -83,7 +83,7 @@
|
|||
- gcc
|
||||
- vagrant
|
||||
register: virtualbox_installed
|
||||
always_run: true
|
||||
check_mode: no
|
||||
when: autocloud_specialization == 'virtualbox'
|
||||
notify:
|
||||
- restart fedmsg-hub
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
ignore_errors: true
|
||||
changed_when: false
|
||||
failed_when: "1 != 1"
|
||||
always_run: true
|
||||
check_mode: no
|
||||
tags:
|
||||
- config
|
||||
- resolvconf
|
||||
|
@ -49,7 +49,7 @@
|
|||
register: if_uuid
|
||||
changed_when: false
|
||||
failed_when: 'if_uuid.stdout == ""'
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
when: ansible_distribution_major_version|int >=7 and nmclitest|success and ( not ansible_ifcfg_blacklist )
|
||||
tags:
|
||||
- config
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
- name: See if theres a watchdog device
|
||||
stat: path=/dev/watchdog
|
||||
when: ansible_virtualization_role == 'guest'
|
||||
always_run: true
|
||||
check_mode: no
|
||||
failed_when: no
|
||||
register: watchdog_dev
|
||||
|
||||
|
|
|
@ -343,7 +343,7 @@
|
|||
- name: check the selinux context of webdir
|
||||
command: matchpathcon /srv/web
|
||||
register: webdir
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- config
|
||||
|
@ -369,7 +369,7 @@
|
|||
- name: check the selinux context of ansible
|
||||
command: matchpathcon /git/ansible
|
||||
register: webdir
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- config
|
||||
|
@ -391,7 +391,7 @@
|
|||
- name: check the selinux context of badges
|
||||
command: matchpathcon /git/badges
|
||||
register: webdir
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- config
|
||||
|
@ -413,7 +413,7 @@
|
|||
- name: check the selinux context of dns
|
||||
command: matchpathcon /git/dns
|
||||
register: webdir
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- config
|
||||
|
@ -435,7 +435,7 @@
|
|||
- name: check the selinux context of infra-docs
|
||||
command: matchpathcon /git/infra-docs
|
||||
register: webdir
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- config
|
||||
|
|
|
@ -122,7 +122,7 @@
|
|||
- name: get vm list
|
||||
virt: command=list_vms
|
||||
register: result
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
|
||||
- name: generate libvirt xml files for clients
|
||||
template:
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
- name: setup opensc in pcscd
|
||||
shell: modutil -dbdir /etc/pki/pesign -list | grep -q Fedora || modutil -force -dbdir /etc/pki/pesign -add opensc -libfile /usr/lib64/pkcs11/opensc-pkcs11.so
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- bkernel
|
||||
|
|
|
@ -128,7 +128,7 @@
|
|||
#- name: check the selinux context of the bugzilla cookie
|
||||
# command: matchpathcon /var/tmp/bodhi-bz.cookie
|
||||
# register: cookiecontext
|
||||
# always_run: yes
|
||||
# check_mode: no
|
||||
# changed_when: "1 != 1"
|
||||
# tags:
|
||||
# - config
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
- name: check the selinux context of the repo list
|
||||
command: matchpathcon /srv/git/pkgs-git-repos-list
|
||||
register: gitlistcontext
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
tags:
|
||||
- config
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
- name: Check if python-client has ever been installed
|
||||
command: "python -c 'import openqa_client'"
|
||||
register: instclient
|
||||
always_run: true
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
failed_when: "1 != 1"
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@
|
|||
- name: check to see if its even installed yet
|
||||
shell: semodule -l | grep fi-collectd | wc -l
|
||||
register: ficgeneral_grep
|
||||
always_run: true
|
||||
check_mode: no
|
||||
changed_when: "'0' in ficgeneral_grep.stdout"
|
||||
tags:
|
||||
- collectd
|
||||
|
@ -138,7 +138,7 @@
|
|||
shell: semodule -l | grep fi-pstorefs | wc -l
|
||||
when: ansible_distribution_major_version|int != 6
|
||||
register: ficpstorefs_grep
|
||||
always_run: true
|
||||
check_mode: no
|
||||
changed_when: "'0' in ficpstorefs_grep.stdout"
|
||||
tags:
|
||||
- collectd
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
- name: check to see if its even installed yet
|
||||
shell: semodule -l | grep fi-collectd-fcomm | wc -l
|
||||
register: ficfcomm_grep
|
||||
always_run: True
|
||||
check_mode: no
|
||||
changed_when: "'0' in ficfcomm_grep.stdout"
|
||||
tags:
|
||||
- collectd
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
- name: check known_hosts file
|
||||
command: stat /home/copr/.ssh/known_hosts
|
||||
register: hostsstat
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
ignore_errors: yes
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
register: offloading
|
||||
failed_when: offloading.rc == 2
|
||||
changed_when: "1 != 1"
|
||||
always_run: True
|
||||
check_mode: no
|
||||
|
||||
- name: disable offloading
|
||||
command: ethtool -K eth0 tso off gro off gso off
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
- name: read pub key into var
|
||||
command: cat /home/copr-service/.ssh/id_rsa.pub
|
||||
register: cat_pubkey
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
|
||||
- set_fact: pubkey="{{cat_pubkey.stdout|join('')}}"
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
- name: check the selinux context of the distgit root directory
|
||||
command: matchpathcon /srv/git
|
||||
register: distgitcontext
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
tags:
|
||||
- config
|
||||
|
@ -269,7 +269,7 @@
|
|||
- name: Get admin users
|
||||
command: "/srv/web/infra/ansible/scripts/users-from-fas @sysadmin-main {{ admin_groups }}"
|
||||
register: admin_user_list
|
||||
always_run: True
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
run_once: True
|
||||
delegate_to: localhost
|
||||
|
@ -366,7 +366,7 @@
|
|||
- name: check the selinux context of the Lookaside Cache root directory
|
||||
command: matchpathcon /srv/cache
|
||||
register: lcachecontext
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
tags:
|
||||
- config
|
||||
|
@ -436,7 +436,7 @@
|
|||
- name: check the selinux context of the upload CGI script
|
||||
command: matchpathcon /srv/web/upload.cgi
|
||||
register: upcgicontext
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
tags:
|
||||
- config
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
- name: check if dnf-automatic.timer is active
|
||||
command: systemctl is-active dnf-automatic.timer
|
||||
register: automaticative
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: 1 != 1
|
||||
ignore_errors: true
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@
|
|||
- name: check semanage ports
|
||||
command: semanage port -l
|
||||
register: semanageoutput
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- dns
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
- name: check the selinux context rsyncd log
|
||||
command: matchpathcon /var/log/rsyncd-fedora.log
|
||||
register: rsyncdlog
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- config
|
||||
|
@ -45,7 +45,7 @@
|
|||
- name: check the selinux context pubdir
|
||||
command: matchpathcon /srv/pub
|
||||
register: pubdir
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- config
|
||||
|
|
|
@ -328,7 +328,7 @@
|
|||
- name: check semanage ports
|
||||
command: semanage port -l
|
||||
register: semanageoutput
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- fedmsg/base
|
||||
|
@ -342,7 +342,7 @@
|
|||
- name: Check if the nrpe user exists
|
||||
shell: /usr/bin/getent passwd nrpe | /usr/bin/wc -l | tr -d ' '
|
||||
register: nrpe_exists
|
||||
always_run: true
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- fedmsg/base
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
- name: check the selinux context freemedia
|
||||
command: matchpathcon /srv/web/freemedia
|
||||
register: freemediacontext
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
ignore_errors: true
|
||||
tags:
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
- name: check to see if its even installed yet
|
||||
shell: semodule -l | grep fi-haproxy | wc -l
|
||||
register: fi_haproxy_grep
|
||||
always_run: true
|
||||
check_mode: no
|
||||
changed_when: "'0' in fi_haproxy_grep.stdout"
|
||||
tags:
|
||||
- haproxy
|
||||
|
@ -87,7 +87,7 @@
|
|||
|
||||
- name: check haproxy cfg to make sure it is valid
|
||||
command: haproxy -c -f /etc/haproxy/haproxy.cfg
|
||||
always_run: true
|
||||
check_mode: no
|
||||
register: haproxyconfigcheck
|
||||
changed_when: haproxyconfigcheck.rc != 0
|
||||
tags:
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
- name: check the selinux context of /srv/web
|
||||
command: matchpathcon /srv/web
|
||||
register: webdir
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- infinote
|
||||
|
|
|
@ -215,7 +215,7 @@
|
|||
- name: check for max_loop with grub2
|
||||
command: cat /etc/grub2.cfg
|
||||
register: max_loop
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: '1 != 1'
|
||||
when: ansible_distribution_major_version|int != 6 and ansible_architecture == 'x86_64'
|
||||
tags:
|
||||
|
@ -224,7 +224,7 @@
|
|||
- name: check for max_loop with grub1
|
||||
command: cat /etc/grub.conf
|
||||
register: max_loop
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: '1 != 1'
|
||||
when: ansible_distribution == 'RedHat' and ansible_architecture == 'x86_64' and ansible_distribution_major_version|int == 6
|
||||
tags:
|
||||
|
|
|
@ -347,7 +347,7 @@
|
|||
command: matchpathcon /mnt/fedora_koji
|
||||
register: mnt_fedora_koji_context
|
||||
when: env == "staging"
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- koji_hub
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
- name: check log file
|
||||
command: stat /var/log/koji-cert-reminder.log
|
||||
register: logstat
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
ignore_errors: true
|
||||
tags:
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
#- name: check to see if its even installed yet
|
||||
# shell: semodule -l | grep mirrorlist2 | wc -l
|
||||
# register: ficgeneral_grep
|
||||
# always_run: true
|
||||
# check_mode: no
|
||||
# changed_when: "'0' in ficgeneral_grep.stdout"
|
||||
# tags:
|
||||
# - mirrorlist2
|
||||
|
|
|
@ -214,7 +214,7 @@
|
|||
- name: Check if the fedmsg group exists
|
||||
shell: /usr/bin/getent group fedmsg | /usr/bin/wc -l | tr -d ' '
|
||||
register: fedmsg_exists
|
||||
always_run: true
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- nagios/client
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
- name: check for netapp route
|
||||
command: ip route show
|
||||
register: netapproute
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- nfs/client
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
register: instclient
|
||||
changed_when: "1 != 1"
|
||||
failed_when: "1 != 1"
|
||||
always_run: true
|
||||
check_mode: no
|
||||
|
||||
- name: Install openQA-python-client
|
||||
command: "python setup.py install"
|
||||
|
@ -84,7 +84,7 @@
|
|||
register: insttools
|
||||
changed_when: "1 != 1"
|
||||
failed_when: "1 != 1"
|
||||
always_run: true
|
||||
check_mode: no
|
||||
|
||||
- name: Install openqa_fedora_tools
|
||||
command: "python setup.py install"
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
register: testsbranch
|
||||
failed_when: "1 != 1"
|
||||
changed_when: "1 != 1"
|
||||
always_run: true
|
||||
check_mode: no
|
||||
|
||||
- name: Check out the tests
|
||||
git:
|
||||
|
@ -142,7 +142,7 @@
|
|||
register: diskcheck
|
||||
failed_when: "1 != 1"
|
||||
changed_when: "1 != 1"
|
||||
always_run: true
|
||||
check_mode: no
|
||||
|
||||
- name: Ensure libvirt is running if needed to create images
|
||||
service: name=libvirtd enabled=yes state=started
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
register: ifcfgusb0
|
||||
failed_when: "1 != 1"
|
||||
changed_when: "1 != 1"
|
||||
always_run: true
|
||||
check_mode: no
|
||||
when: deployment_type is defined
|
||||
|
||||
- name: Check if there's an annoying ifcfg-eth1 lurking
|
||||
|
@ -24,7 +24,7 @@
|
|||
register: ifcfgeth1
|
||||
failed_when: "1 != 1"
|
||||
changed_when: "1 != 1"
|
||||
always_run: true
|
||||
check_mode: no
|
||||
when: deployment_type is defined
|
||||
|
||||
- name: Make sure usb0 doesn't get in our way
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
- name: check the selinux context of the users home git dirs
|
||||
command: matchpathcon "/home/fedora/someone/public_git"
|
||||
register: gitcontext
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
tags:
|
||||
- config
|
||||
|
@ -88,7 +88,7 @@
|
|||
- name: check the selinux context of the project dirs
|
||||
command: matchpathcon "/project"
|
||||
register: gitcontext
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
tags:
|
||||
- config
|
||||
|
@ -104,7 +104,7 @@
|
|||
- name: check the selinux context of the web dir
|
||||
command: matchpathcon "/srv/web"
|
||||
register: gitcontext
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
tags:
|
||||
- config
|
||||
|
@ -120,7 +120,7 @@
|
|||
- name: check the selinux context of the people dir
|
||||
command: matchpathcon "/srv/people"
|
||||
register: gitcontext
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
tags:
|
||||
- config
|
||||
|
@ -136,7 +136,7 @@
|
|||
- name: check the selinux context of the planet dir
|
||||
command: matchpathcon "/srv/planet"
|
||||
register: gitcontext
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
tags:
|
||||
- config
|
||||
|
@ -154,7 +154,7 @@
|
|||
- name: check the selinux context alias of the home dir
|
||||
command: matchpathcon "/srv/home"
|
||||
register: gitcontext
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
tags:
|
||||
- config
|
||||
|
@ -173,7 +173,7 @@
|
|||
#
|
||||
- name: set default xfs quotas on /srv
|
||||
command: xfs_quota -x -c 'limit bsoft=2g bhard=2g -d' /srv
|
||||
always_run: true
|
||||
check_mode: no
|
||||
register: xfs_quotaoutput
|
||||
changed_when: "xfs_quotaoutput.rc != 0"
|
||||
tags:
|
||||
|
@ -215,7 +215,7 @@
|
|||
- { user: tflink, quota: 10g }
|
||||
- { user: thunderbirdtr, quota: 3g }
|
||||
- { user: zpericic, quota: 5g }
|
||||
always_run: true
|
||||
check_mode: no
|
||||
register: xfs_quotaoutput
|
||||
changed_when: "xfs_quotaoutput.rc != 0"
|
||||
tags:
|
||||
|
|
|
@ -150,7 +150,7 @@
|
|||
- name: check to see if sshd port is already known by selinux
|
||||
shell: semanage port -l | grep ssh
|
||||
register: sshd_selinux_port
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
|
||||
- name: allow alternate sshd port
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
- name: check the selinux context of the planet dir
|
||||
command: matchpathcon "/srv/planet"
|
||||
register: gitcontext
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
tags:
|
||||
- config
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
- name: check for grub serial setup
|
||||
command: cat /etc/grub2.cfg
|
||||
register: serial
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: '1 != 1'
|
||||
tags:
|
||||
- serial-console
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
- name: check the selinux context of the /srv/web/meetbot dir
|
||||
command: matchpathcon /srv/web/meetbot
|
||||
register: context
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- config
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
- name: check log file
|
||||
command: stat /var/log/fedoratagger.log
|
||||
register: logstat
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
ignore_errors: true
|
||||
tags:
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
- name: check the selinux context of webdir
|
||||
command: matchpathcon /srv/web
|
||||
register: webdir
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
changed_when: "1 != 1"
|
||||
tags:
|
||||
- config
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
- name: growpart the second partition (/) to full size
|
||||
command: growpart /dev/vda 2
|
||||
register: growpart
|
||||
always_run: true
|
||||
check_mode: no
|
||||
changed_when: "growpart.rc != 1"
|
||||
#failed_when: growpart.rc == 2
|
||||
ignore_errors: true
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
- name: growpart the first partition (/) to full size
|
||||
command: growpart /dev/vda 1
|
||||
register: growpart
|
||||
always_run: true
|
||||
check_mode: no
|
||||
changed_when: "growpart.rc != 1"
|
||||
failed_when: growpart.rc == 2
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
register: host_is_up
|
||||
ignore_errors: true
|
||||
changed_when: false
|
||||
always_run: true
|
||||
check_mode: no
|
||||
|
||||
- name: clean out old known_hosts (name based entries)
|
||||
local_action: known_hosts path={{item}} host={{inventory_hostname}} state=absent
|
||||
|
@ -56,7 +56,7 @@
|
|||
changed_when: volume_available.rc == 0
|
||||
ignore_errors: True
|
||||
when: volumes is defined
|
||||
always_run: True
|
||||
check_mode: no
|
||||
|
||||
#
|
||||
# If it is attach it.
|
||||
|
@ -97,7 +97,7 @@
|
|||
|
||||
- name: gather facts
|
||||
setup:
|
||||
always_run: True
|
||||
check_mode: no
|
||||
ignore_errors: True
|
||||
register: facts
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
delegate_to: "{{ vmhost }}"
|
||||
virt: command=list_vms
|
||||
register: result
|
||||
always_run: yes
|
||||
check_mode: no
|
||||
|
||||
- name: ensure the lv for the guest is made
|
||||
lvol: lv={{ inventory_hostname }} vg={{ volgroup }} size={{ lvm_size }} state=present
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue