Help/Ansible/last_install.yaml
2025-05-29 21:55:04 +02:00

24 lines
485 B
YAML
Executable File

- name: Last install
hosts: all
become: true
gather_facts: yes
tasks:
- name: Copy file disable IPV6
copy:
src: ipv6dis
dest: /tmp/ipv6dis
owner: root
group: root
mode: 0755
- name: Run script disable IPV6
shell:
"/tmp/ipv6dis"
- name: Regenerate grub
shell:
"update-grub"
- name: Restart machine
command: shutdown -r now
async: 1
poll: 0
ignore_errors: true