2022-03-01 23:30:08 +00:00
|
|
|
---
|
|
|
|
- name: Prep lxd Playbook
|
|
|
|
hosts: lxd_hosts
|
|
|
|
become: true
|
|
|
|
tasks:
|
|
|
|
- name: PREP LXD -- Check if ubuntu minimal repo already added.
|
|
|
|
shell: lxc remote list | grep ubuntu-minimal | wc -l
|
|
|
|
register: ubuntu_minimal_repo
|
2022-08-03 12:37:50 +00:00
|
|
|
check_mode: no
|
2022-03-01 23:30:08 +00:00
|
|
|
- name: PREP LXD -- Add ubuntu minimal repo
|
|
|
|
command: lxc remote add --protocol simplestreams ubuntu-minimal https://cloud-images.ubuntu.com/minimal/releases/
|
|
|
|
when: ubuntu_minimal_repo.stdout != "1"
|