508e433bab
Co-authored-by: Lino Silva <lino.silva@farfetch.com> Reviewed-on: #1
27 lines
592 B
YAML
27 lines
592 B
YAML
---
|
|
- name: Stop container
|
|
community.general.proxmox:
|
|
vmid: 605
|
|
api_user: root@pam
|
|
api_password: "{{ proxmox_api_password }}"
|
|
api_host: 10.0.2.2
|
|
state: stopped
|
|
ignore_errors: true
|
|
timeout: 90
|
|
|
|
- name: Remove containers
|
|
community.general.proxmox:
|
|
vmid: 605
|
|
api_user: root@pam
|
|
api_password: "{{ proxmox_api_password }}"
|
|
api_host: 10.0.2.2
|
|
state: absent
|
|
ignore_errors: true
|
|
timeout: 90
|
|
|
|
- name: Remove .ssh/known_hosts lines
|
|
ansible.builtin.lineinfile:
|
|
path: /Users/lino.silva/.ssh/known_hosts
|
|
state: absent
|
|
regexp: "^10.0.2.14"
|