Files
ansible-servers/serv-05-dockerubuntu24.yml
ansible user f7e76e9748 first commit
2025-07-21 10:47:59 +02:00

17 lines
417 B
YAML

---
# - name: Pre-IP override setup
# hosts: all
# gather_facts: false
# tasks:
# - name: Capture static IP and override ansible_host with ansible_oldip
# set_fact:
# ansible_newip: "{{ hostvars[inventory_hostname]['ansible_host'] }}"
# ansible_host: "{{ ansible_oldip }}"
# when: ansible_oldip is defined
- hosts: all
become: true
roles:
- serv-05-dockerubuntu24