Skip to content

Instantly share code, notes, and snippets.

@ktechmidas
Created August 31, 2018 05:23
Show Gist options
  • Save ktechmidas/d13b4b1d2a455d4ad70c6be92863842c to your computer and use it in GitHub Desktop.
Save ktechmidas/d13b4b1d2a455d4ad70c6be92863842c to your computer and use it in GitHub Desktop.
- hosts: localhost
connection: local
tasks:
- name: Create a started container
lxd_container:
name: web
state: started
source:
type: image
mode: pull
server: https://images.linuxcontainers.org
protocol: lxd
alias: ubuntu/xenial/amd64
profiles: ["default"]
wait_for_ipv4_addresses: true
timeout: 600
- name: Install nginx
delegate_to: web
apt:
name: nginx
update_cache: yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment