Browse Source

Remove almost all ansible files

pull/15/head
10sr 7 years ago
parent
commit
5a93218b62
8 changed files with 0 additions and 102 deletions
  1. +0
    -5
      ansible/archlinux/ansible.cfg
  2. +0
    -1
      ansible/archlinux/local.hosts
  3. +0
    -4
      ansible/archlinux/lxc.yml
  4. +0
    -20
      ansible/archlinux/roles/lxc/tasks/main.yml
  5. +0
    -13
      ansible/removable_media.yml
  6. +0
    -5
      ansible/static-network/debian_setup.static_ip.interfaces
  7. +0
    -31
      ansible/static-network/debian_setup.yml
  8. +0
    -23
      ansible/utilities.yml

+ 0
- 5
ansible/archlinux/ansible.cfg View File

@@ -1,5 +0,0 @@
[defaults]
hostfile=local.hosts
nocows=1
[privilege_escalation]
become_ask_pass=True

+ 0
- 1
ansible/archlinux/local.hosts View File

@@ -1 +0,0 @@
localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python2

+ 0
- 4
ansible/archlinux/lxc.yml View File

@@ -1,4 +0,0 @@
---
- hosts: all
roles:
- lxc

+ 0
- 20
ansible/archlinux/roles/lxc/tasks/main.yml View File

@@ -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

+ 0
- 13
ansible/removable_media.yml View File

@@ -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

+ 0
- 5
ansible/static-network/debian_setup.static_ip.interfaces View File

@@ -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

+ 0
- 31
ansible/static-network/debian_setup.yml View File

@@ -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

+ 0
- 23
ansible/utilities.yml View File

@@ -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

Loading…
Cancel
Save