added setup_fastd.yml playbook
current features: - install yaourt - install packages for adminsnetsplit
parent
e829ca802b
commit
f4ee05f46e
@ -1 +1,3 @@
|
||||
new_inventory.ini
|
||||
inventory.ini
|
||||
|
||||
*.swp
|
||||
|
@ -0,0 +1,3 @@
|
||||
[submodule "library/external_modules/ansible-aur"]
|
||||
path = library/external_modules/ansible-aur
|
||||
url = git://github.com/cdown/ansible-aur.git
|
@ -1,8 +1,12 @@
|
||||
[new_fastds]
|
||||
123.123.123.123 arch_hostname=fastd1
|
||||
|
||||
[fastds]
|
||||
123.123.123.123
|
||||
|
||||
[all:vars]
|
||||
hetzner_webservice_username=<hetzner_webservice_username>
|
||||
hetzner_webservice_password=<hetzner_webservice_password>
|
||||
rescue_authorized_key=<fingerprint of ssh key to use in rescue mode>
|
||||
authorized_keys=["<key1>", "<key2>"]
|
||||
aur_user=yaourt
|
@ -0,0 +1 @@
|
||||
external_modules/ansible-aur/aur
|
@ -0,0 +1 @@
|
||||
Subproject commit 04eec3e0afdf31d09ffa79067b75e6b05c78fd61
|
@ -0,0 +1,13 @@
|
||||
---
|
||||
- name: update pacman cache
|
||||
pacman:
|
||||
update_cache: yes
|
||||
- name: install packages for admins
|
||||
pacman:
|
||||
name: '{{ item }}'
|
||||
state: present
|
||||
with_items:
|
||||
- rxvt-unicode-terminfo
|
||||
- bash-completion
|
||||
- vim
|
||||
- htop
|
@ -0,0 +1 @@
|
||||
%wheel ALL=(ALL) NOPASSWD: ALL
|
@ -0,0 +1,27 @@
|
||||
---
|
||||
- name: add aur user {{ aur_user }}
|
||||
user:
|
||||
name: '{{ aur_user }}'
|
||||
group: users
|
||||
groups: wheel
|
||||
|
||||
- name: allow group wheel to sudo
|
||||
copy:
|
||||
src: 10-wheel
|
||||
dest: /etc/sudoers.d/
|
||||
|
||||
- name: "add archlinux.fr repository to pacman"
|
||||
lineinfile:
|
||||
dest: "/etc/pacman.conf"
|
||||
state: "present"
|
||||
line: "{{ item }}"
|
||||
with_items:
|
||||
- "[archlinuxfr]"
|
||||
- "SigLevel = Never"
|
||||
- "Server = http://repo.archlinux.fr/$arch"
|
||||
|
||||
- name: "install yaourt"
|
||||
pacman:
|
||||
update_cache: yes
|
||||
name: "yaourt"
|
||||
state: "present"
|
@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: setup fastds
|
||||
hosts: fastds
|
||||
user: root
|
||||
roles:
|
||||
- install_yaourt
|
||||
- install_admin_packages
|
Loading…
Reference in New Issue