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.
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
---
|
|
|
|
- name: 'apply setup to {{ host | default("all") }}'
|
|
hosts: '{{ host | default("all") }}'
|
|
serial: "{{ serial_number|default(25) }}"
|
|
become: false
|
|
|
|
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: "Import autodiscover pre-tasks"
|
|
include_tasks: tasks/autodiscover_pre_tasks.yml
|
|
tags:
|
|
- always
|
|
|
|
- name: "Variable <ansible_distribution>"
|
|
debug:
|
|
msg: "{{ ansible_distribution }}"
|
|
delegate_to: 127.0.0.1
|
|
- name: "Variable <group_names>"
|
|
debug:
|
|
msg: "{{ group_names }}"
|
|
delegate_to: 127.0.0.1
|
|
- name: "Printing ip addresses for {{ inventory_hostname }}"
|
|
debug:
|
|
msg: "{{ stage_server_ip }} / {{ stage_private_server_ip }}"
|
|
delegate_to: 127.0.0.1
|
|
- name: "Printing stage_server_infos"
|
|
debug:
|
|
msg: "{{ stage_server_infos }}"
|
|
delegate_to: 127.0.0.1
|