use userdir module as example instead of alias (#15540)
* alias module is very basic and removing it leads to the suse default config failing * future improvements might test different modules and the effect of them being removed
This commit is contained in:
parent
606d35b8a6
commit
cf62a62b83
1 changed files with 10 additions and 10 deletions
|
@ -21,11 +21,11 @@
|
||||||
zypper: name=apache2 state=present
|
zypper: name=apache2 state=present
|
||||||
when: "ansible_os_family == 'Suse'"
|
when: "ansible_os_family == 'Suse'"
|
||||||
|
|
||||||
- name: disable alias module
|
- name: disable userdir module
|
||||||
apache2_module: name=alias state=absent
|
apache2_module: name=userdir state=absent
|
||||||
|
|
||||||
- name: disable alias module, second run
|
- name: disable userdir module, second run
|
||||||
apache2_module: name=alias state=absent
|
apache2_module: name=userdir state=absent
|
||||||
register: disable
|
register: disable
|
||||||
|
|
||||||
- name: ensure apache2_module is idempotent
|
- name: ensure apache2_module is idempotent
|
||||||
|
@ -33,8 +33,8 @@
|
||||||
that:
|
that:
|
||||||
- 'not disable.changed'
|
- 'not disable.changed'
|
||||||
|
|
||||||
- name: enable alias module
|
- name: enable userdir module
|
||||||
apache2_module: name=alias state=present
|
apache2_module: name=userdir state=present
|
||||||
register: enable
|
register: enable
|
||||||
|
|
||||||
- name: ensure changed on successful enable
|
- name: ensure changed on successful enable
|
||||||
|
@ -42,8 +42,8 @@
|
||||||
that:
|
that:
|
||||||
- 'enable.changed'
|
- 'enable.changed'
|
||||||
|
|
||||||
- name: enable alias module, second run
|
- name: enable userdir module, second run
|
||||||
apache2_module: name=alias state=present
|
apache2_module: name=userdir state=present
|
||||||
register: enabletwo
|
register: enabletwo
|
||||||
|
|
||||||
- name: ensure apache2_module is idempotent
|
- name: ensure apache2_module is idempotent
|
||||||
|
@ -51,8 +51,8 @@
|
||||||
that:
|
that:
|
||||||
- 'not enabletwo.changed'
|
- 'not enabletwo.changed'
|
||||||
|
|
||||||
- name: disable alias module, final run
|
- name: disable userdir module, final run
|
||||||
apache2_module: name=alias state=absent
|
apache2_module: name=userdir state=absent
|
||||||
register: disablefinal
|
register: disablefinal
|
||||||
|
|
||||||
- name: ensure changed on successful disable
|
- name: ensure changed on successful disable
|
||||||
|
|
Loading…
Reference in a new issue