Move some persstent Vars to main playbook
This commit is contained in:
parent
3c55eaf4a1
commit
9d4af56976
6
main.yml
6
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"]
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user