Commit be5a9ac3 authored by nanahira's avatar nanahira

install part

parent 8d5bbcf9
---
- hosts: router_nextgen
remote_user: root
become: true
vars:
kernel_modules:
- macvlan
- bonding
- 8021q
docker_images:
- oznu/cloudflare-ddns
- git-registry.mycard.moe/nanahira/docker-dhcpv6-client
- git-registry.mycard.moe/nanahira/gateway-selector
- git-registry.mycard.moe/nanahira/tr069-daemon
- git-registry.mycard.moe/nanahira/dnsmasq
- git-registry.mycard.moe/nanahira/docker-bird
- git-registry.mycard.moe/nanahira/docker-lldp
tasks:
- name: apt
apt:
name: bridge-utils,ifenslave,vlan,pppoe,iproute2,iptables
update_cache: true
- name: pve things
apt:
name: 'pve-headers-{{ansible_kernel}},ifupdown2'
when: ansible_kernel.endswith("-pve")
- name: ifupdown
apt:
name: ifupdown
when: not ansible_kernel.endswith("-pve")
- name: modules file
copy:
content: |
{% for module in kernel_modules %}
{{module}}
{% endfor %}
notify: load_modules
- name: pull docker images
docker_image:
name: '{{item}}'
source: pull
with_items: '{{docker_images}}'
handlers:
- name: load_modules
shell: 'modprobe {{item}}'
with_items: '{{kernel_modules}}'
ubuntu_mirror: http://archive.ubuntu.com
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment