mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* ensure creation of /etc/cron.d in test
* fixed typo
(cherry picked from commit 9e0ff8ba4b
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
e89648a114
commit
47aa93d970
1 changed files with 98 additions and 96 deletions
|
@ -3,9 +3,11 @@
|
|||
# and should not be used as examples of how to write Ansible roles #
|
||||
####################################################################
|
||||
|
||||
- when:
|
||||
- not (ansible_os_family == 'Alpine' and ansible_distribution_version is version('3.15', '<')) # TODO
|
||||
block:
|
||||
- name: Ensure /etc/cron.d directory exists
|
||||
file:
|
||||
path: /etc/cron.d
|
||||
state: directory
|
||||
|
||||
- name: Create EMAIL cron var
|
||||
cronvar:
|
||||
name: EMAIL
|
||||
|
@ -99,7 +101,7 @@
|
|||
register: custom_varcheck3
|
||||
failed_when: custom_varcheck3.rc == 0
|
||||
|
||||
- name: Esure cronvar tasks did the right thing
|
||||
- name: Ensure cronvar tasks did the right thing
|
||||
assert:
|
||||
that:
|
||||
- create_cronvar1 is changed
|
||||
|
|
Loading…
Reference in a new issue