Skip to content

Instantly share code, notes, and snippets.

@defenestratexp
Created May 13, 2020 18:33
Show Gist options
  • Save defenestratexp/79dcecb8cdd701d1088418d96dee3a94 to your computer and use it in GitHub Desktop.
Save defenestratexp/79dcecb8cdd701d1088418d96dee3a94 to your computer and use it in GitHub Desktop.
Failing ansible playbook
# playbooks/launch_container.yml
---
- hosts: cloud_servers
connection: lxd
tasks:
- name: Launch a container on remote
lxd_container:
trust_password: myhellasecurepasskey
url: https://lxdremote.example.com:8443
name: sandbox1
state: started
source:
type: image
mode: pull
server: https://images.linuxcontainers.org
protocol: simplestreams
alias: ubuntu/xenial/amd64
profiles: ["default"]
wait_for_ipv4_addresses: true
timeout: 600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment