diff --git a/host_setup.yml b/host_setup.yml index f30591c..8c7078c 100644 --- a/host_setup.yml +++ b/host_setup.yml @@ -1,7 +1,9 @@ +--- - name: Initial generic setup hosts: gitrunner become: yes - + gather_facts: yes + tasks: - name: Install required packages yum: @@ -10,6 +12,7 @@ - nodejs - mock state: present + update_cache: yes - name: Check current hostname command: hostname @@ -18,5 +21,6 @@ - name: Set hostname to configured value (if needed) hostname: - name: fedora-rawhide10 - when: current_hostname.stdout != ansible_hostname \ No newline at end of file + name: fedora-rawhide + when: + - current_hostname.stdout != "fedora-rawhide" \ No newline at end of file