diff --git a/main.yml b/main.yml index 1acca58..f4f31d8 100644 --- a/main.yml +++ b/main.yml @@ -36,6 +36,12 @@ private: false default: /dev/sda vars_files: vars.yml + vars: + ansible_user: "{{ user_name }}" + ansible_password: "{{ user_password }}" + ansible_become_password: "{{ user_password }}" + ansible_ssh_extra_args: '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' + vm_ip: "{{ inventory_hostname }}/24" pre_tasks: - name: Set ansible_python_interpreter when: os | lower in ["almalinux", "rhel9", "rhel8", "rocky"] diff --git a/vars_example.yml b/vars_example.yml index e2363fa..5628bd6 100644 --- a/vars_example.yml +++ b/vars_example.yml @@ -1,9 +1,3 @@ -ansible_user: "{{ user_name }}" -ansible_password: "{{ user_password }}" -ansible_become_password: "{{ user_password }}" -ansible_ssh_extra_args: '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' - -vm_ip: "{{ inventory_hostname }}/24" install_type: "virtual" cis: false