Move some persstent Vars to main playbook

This commit is contained in:
Sandwich 2024-10-30 14:01:07 +01:00
parent 3c55eaf4a1
commit 9d4af56976
2 changed files with 6 additions and 6 deletions

View File

@ -36,6 +36,12 @@
private: false private: false
default: /dev/sda default: /dev/sda
vars_files: vars.yml 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: pre_tasks:
- name: Set ansible_python_interpreter - name: Set ansible_python_interpreter
when: os | lower in ["almalinux", "rhel9", "rhel8", "rocky"] when: os | lower in ["almalinux", "rhel9", "rhel8", "rocky"]

View File

@ -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" install_type: "virtual"
cis: false cis: false