| @@ -1,5 +0,0 @@ | |||||
| [defaults] | |||||
| hostfile=local.hosts | |||||
| nocows=1 | |||||
| [privilege_escalation] | |||||
| become_ask_pass=True | |||||
| @@ -1 +0,0 @@ | |||||
| localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python2 | |||||
| @@ -1,4 +0,0 @@ | |||||
| --- | |||||
| - hosts: all | |||||
| roles: | |||||
| - lxc | |||||
| @@ -1,20 +0,0 @@ | |||||
| - name: Install LXC | |||||
| pacman: name=lxc state=present | |||||
| become: yes | |||||
| - name: Place bridge netdev file | |||||
| template: | |||||
| src=bridge.netdev.j2 | |||||
| dest=/etc/systemd/network/{{lxc_br_name}}.netdev | |||||
| become: yes | |||||
| notify: | |||||
| - Restart systemd-networkd | |||||
| - name: Place bridge network file | |||||
| template: | |||||
| src=bridge.network.j2 | |||||
| dest=/etc/systemd/network/{{lxc_br_name}}.network | |||||
| become: yes | |||||
| notify: | |||||
| - Restart systemd-networkd | |||||
| @@ -1,13 +0,0 @@ | |||||
| --- | |||||
| # https://wiki.archlinux.org/index.php/File_manager_functionality | |||||
| - hosts: all | |||||
| vars: | |||||
| packages: [gvfs, gvfs-afc, ntfs-3g] | |||||
| sudo: yes | |||||
| tasks: | |||||
| - name: install packages | |||||
| pacman: name={{item}} state=installed | |||||
| with_items: packages | |||||
| when: ansible_os_family == "Archlinux" | |||||
| - name: add user yuk to storage group | |||||
| user: append=yes groups=storage name=yuk | |||||
| @@ -1,5 +0,0 @@ | |||||
| auto eth0 | |||||
| iface eth0 inet static | |||||
| address 192.168.2.4 | |||||
| netmask 255.255.255.0 | |||||
| gateway 192.168.2.1 | |||||
| @@ -1,31 +0,0 @@ | |||||
| --- | |||||
| - hosts: all | |||||
| vars: | |||||
| sudo: yes | |||||
| tasks: | |||||
| - name: assert debian | |||||
| assert: | |||||
| that: "ansible_os_family == 'Debian'" | |||||
| - name: add line to source interfaces.d | |||||
| lineinfile: dest=/etc/network/interfaces | |||||
| line="source-directory interfaces.d" | |||||
| backup=yes | |||||
| - name: comment allow-hotplug eth0 | |||||
| lineinfile: dest=/etc/network/interfaces | |||||
| line="# allow-hotplug eth0" | |||||
| regexp="allow-hotplug eth0" | |||||
| backup=yes | |||||
| - name: comment dhcp setup for eth0 | |||||
| lineinfile: dest=/etc/network/interfaces | |||||
| line="# iface eth0 inet dhcp" | |||||
| regexp="iface eth0 inet dhcp" | |||||
| backup=yes | |||||
| - name: put interfaces file for static IP | |||||
| copy: src=debian_setup.static_ip.interfaces | |||||
| dest=/etc/network/interfaces.d/static_ip | |||||
| notify: | |||||
| - restart networking service | |||||
| handlers: | |||||
| - name: restart networking service | |||||
| service: name=networking state=restarted | |||||
| @@ -1,23 +0,0 @@ | |||||
| --- | |||||
| - hosts: all | |||||
| vars: | |||||
| packages: [rsync, git, htop, sl, atool] | |||||
| tasks: | |||||
| - name: install packages for pacman | |||||
| pacman: pkg={{ item }} state=installed | |||||
| with_items: packages | |||||
| sudo: yes | |||||
| when: ansible_pkg_mgr == "pacman" | |||||
| - name: install packages | |||||
| apt: name={{ item }} state=present | |||||
| with_items: packages | |||||
| sudo: yes | |||||
| when: ansible_pkg_mgr == "apt" | |||||
| - name: install script colortable16 | |||||
| get_url: url=https://gist.github.com/10sr/6852317/raw/colortable16.sh dest={{ ansible_env.HOME }}/.local/bin/colortable16.sh mode=0755 | |||||
| - name: install script 256colors | |||||
| get_url: url=https://gist.github.com/10sr/6852331/raw/256colors2.pl dest={{ ansible_env.HOME }}/.local/bin/256colors2.pl mode=0755 | |||||
| # handlers: | |||||
| # - name: restart ntpd | |||||
| # action: service name=ntpd state=restarted | |||||