Skip to content

skowronski-cloud/scloud-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scloud-ansible

requirements

ansible-galaxy install -r requirements.yml

play spin up LXD container

host vars

required:

  • cpu (int; count of vCPU cores)
  • mem (int; megabytes of RAM)
  • dsk (int; gigabytes of main disk)
  • hv (str; ansible_hostname of hypervisor) optional:
  • lxd_nesting (bool; LXD flag)
  • lxd_privileged (bool; LXD flag)

play code

- hosts: localhost
  vars:
    containers:
      - ct01
      - ct02
      - ct03
  tasks:
    - name: spin up LXD container
      ansible.builtin.include_tasks: common_lxdct.yml
      with_items: '{{ containers }}'

format

spaces between {{ }} and content

for f in `find . -type f | grep -v '.git'`; do echo $f; sed -r 's/({{)([^ ].*)(}})/\1 \2 \3/' $f > $f.new; rm $f; mv $f.new $f; done

About

Ansible code for scloud infra: rlyeh, ulthar and others

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published