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.
26 lines
691 B
YAML
26 lines
691 B
YAML
---
|
|
- name: 'apply setup to {{ host | default("all") }}'
|
|
hosts: '{{ host | default("all") }}'
|
|
serial: "{{ serial_number|default(5) }}"
|
|
become: yes
|
|
|
|
pre_tasks:
|
|
- name: "Check if ansible version is at least 2.10.x"
|
|
assert:
|
|
that:
|
|
- ansible_version.major >= 2
|
|
- ansible_version.minor >= 10
|
|
msg: "The ansible version has to be at least ({{ ansible_version.full }})"
|
|
|
|
- name: "Variable <ansible_distribution>"
|
|
debug:
|
|
msg: "{{ ansible_distribution }}"
|
|
- name: "Variable <group_names>"
|
|
debug:
|
|
msg: "{{ group_names }}"
|
|
- name: "Variable <sudo_group>"
|
|
debug:
|
|
msg: "{{ sudo_group }}"
|
|
|
|
roles:
|