mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-30 16:41:21 -07:00
Adjust YAML files (#10233)
Adjust YAML files.
(cherry picked from commit eaa5e07b28
)
This commit is contained in:
parent
e8ff74f077
commit
a9e892952d
244 changed files with 7272 additions and 7329 deletions
|
@ -25,53 +25,53 @@
|
|||
# Will also have to skip on OpenSUSE when running on Python 2 on newer Leap versions
|
||||
# (!= 42 and >= 15) as cloud-init will install the Python 3 package, breaking our build on py2.
|
||||
when:
|
||||
- not (ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int == 14)
|
||||
- not (ansible_os_family == "Suse" and ansible_distribution_major_version|int != 42 and ansible_python.version.major != 3)
|
||||
- not (ansible_os_family == "Suse" and ansible_distribution_major_version|int == 15)
|
||||
- not (ansible_distribution == "CentOS" and ansible_distribution_major_version|int == 8) # TODO: cannot start service
|
||||
- not (ansible_distribution == 'Archlinux') # TODO: package seems to be broken, cannot be downloaded from mirrors?
|
||||
- not (ansible_distribution == 'Alpine') # TODO: not sure what's wrong here, the module doesn't return what the tests expect
|
||||
- not (ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int == 14)
|
||||
- not (ansible_os_family == "Suse" and ansible_distribution_major_version|int != 42 and ansible_python.version.major != 3)
|
||||
- not (ansible_os_family == "Suse" and ansible_distribution_major_version|int == 15)
|
||||
- not (ansible_distribution == "CentOS" and ansible_distribution_major_version|int == 8) # TODO: cannot start service
|
||||
- not (ansible_distribution == 'Archlinux') # TODO: package seems to be broken, cannot be downloaded from mirrors?
|
||||
- not (ansible_distribution == 'Alpine') # TODO: not sure what's wrong here, the module doesn't return what the tests expect
|
||||
block:
|
||||
- name: setup install cloud-init
|
||||
package:
|
||||
name:
|
||||
- cloud-init
|
||||
- udev
|
||||
- name: setup install cloud-init
|
||||
package:
|
||||
name:
|
||||
- cloud-init
|
||||
- udev
|
||||
|
||||
- name: Ensure systemd-network user exists
|
||||
user:
|
||||
name: systemd-network
|
||||
state: present
|
||||
when: ansible_distribution == 'Fedora' and ansible_distribution_major_version|int >= 37
|
||||
- name: Ensure systemd-network user exists
|
||||
user:
|
||||
name: systemd-network
|
||||
state: present
|
||||
when: ansible_distribution == 'Fedora' and ansible_distribution_major_version|int >= 37
|
||||
|
||||
- name: setup run cloud-init
|
||||
service:
|
||||
name: cloud-init-local
|
||||
state: restarted
|
||||
- name: setup run cloud-init
|
||||
service:
|
||||
name: cloud-init-local
|
||||
state: restarted
|
||||
|
||||
- name: test gather cloud-init facts in check mode
|
||||
cloud_init_data_facts:
|
||||
check_mode: true
|
||||
register: result
|
||||
- name: verify test gather cloud-init facts in check mode
|
||||
assert:
|
||||
that:
|
||||
- result.cloud_init_data_facts.status.v1 is defined
|
||||
- result.cloud_init_data_facts.status.v1.stage is defined
|
||||
- not result.cloud_init_data_facts.status.v1.stage
|
||||
- cloud_init_data_facts.status.v1 is defined
|
||||
- cloud_init_data_facts.status.v1.stage is defined
|
||||
- not cloud_init_data_facts.status.v1.stage
|
||||
- name: test gather cloud-init facts in check mode
|
||||
cloud_init_data_facts:
|
||||
check_mode: true
|
||||
register: result
|
||||
- name: verify test gather cloud-init facts in check mode
|
||||
assert:
|
||||
that:
|
||||
- result.cloud_init_data_facts.status.v1 is defined
|
||||
- result.cloud_init_data_facts.status.v1.stage is defined
|
||||
- not result.cloud_init_data_facts.status.v1.stage
|
||||
- cloud_init_data_facts.status.v1 is defined
|
||||
- cloud_init_data_facts.status.v1.stage is defined
|
||||
- not cloud_init_data_facts.status.v1.stage
|
||||
|
||||
- name: test gather cloud-init facts
|
||||
cloud_init_data_facts:
|
||||
register: result
|
||||
- name: verify test gather cloud-init facts
|
||||
assert:
|
||||
that:
|
||||
- result.cloud_init_data_facts.status.v1 is defined
|
||||
- result.cloud_init_data_facts.status.v1.stage is defined
|
||||
- not result.cloud_init_data_facts.status.v1.stage
|
||||
- cloud_init_data_facts.status.v1 is defined
|
||||
- cloud_init_data_facts.status.v1.stage is defined
|
||||
- not cloud_init_data_facts.status.v1.stage
|
||||
- name: test gather cloud-init facts
|
||||
cloud_init_data_facts:
|
||||
register: result
|
||||
- name: verify test gather cloud-init facts
|
||||
assert:
|
||||
that:
|
||||
- result.cloud_init_data_facts.status.v1 is defined
|
||||
- result.cloud_init_data_facts.status.v1.stage is defined
|
||||
- not result.cloud_init_data_facts.status.v1.stage
|
||||
- cloud_init_data_facts.status.v1 is defined
|
||||
- cloud_init_data_facts.status.v1.stage is defined
|
||||
- not cloud_init_data_facts.status.v1.stage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue