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.
ansible/test/integration/targets/hostname/tasks/RedHat.yml

16 lines
495 B
YAML

- 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