mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
495 B
YAML
16 lines
495 B
YAML
4 years ago
|
- name: Make sure we used SystemdStrategy...
|
||
|
lineinfile:
|
||
|
path: "{{ _hostname_file }}"
|
||
|
line: crocodile.ansible.test.doesthiswork.net.example.com
|
||
|
check_mode: true
|
||
|
register: etc_hostname
|
||
|
failed_when: etc_hostname is changed
|
||
|
|
||
|
- name: ...and not RedhatStrategy
|
||
|
lineinfile:
|
||
|
path: /etc/sysconfig/network
|
||
|
line: HOSTNAME=crocodile.ansible.test.doesthiswork.net.example.com
|
||
|
check_mode: true
|
||
|
register: etc_sysconfig_network
|
||
|
failed_when: etc_sysconfig_network is not changed
|