playbooks sortiert (#109)

bugfix

laptop in user vars

laptop von group zu host vars

polybar dependencie

playbboks verschoben

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#109
Co-Authored-By: mg <mg@noreply.git.mgrote.net>
Co-Committed-By: mg <mg@noreply.git.mgrote.net>
This commit is contained in:
Michael Grote 2021-06-07 19:34:38 +02:00
parent 08ad1e5e53
commit 451bb91a99
37 changed files with 24 additions and 48 deletions

View file

@ -91,6 +91,7 @@
servers:
- production
- test
- laptop
- username: root
password: "{{ lookup('keepass', 'root_linux_password_hash_proxmox', 'password') }}"
update_password: on_create
@ -112,6 +113,7 @@
servers:
- production
- test
- laptop
### mgrote.apt_install_packages
programs_common:
- locales

16
playbooks/2_all.yml Normal file
View file

@ -0,0 +1,16 @@
---
- import_playbook: base/apt_sources.yml
- import_playbook: base/install_packages.yml
- import_playbook: base/unattended_upgrades.yml
- import_playbook: base/ntp_client.yml
- import_playbook: base/restic.yml
- import_playbook: base/users.yml
- import_playbook: base/tmux.yml
- import_playbook: base/motd.yml
- import_playbook: base/dotfiles.yml
- import_playbook: base/vim.yml
- import_playbook: base/postfix.yml
- import_playbook: base/ufw.yml
- import_playbook: base/ssh_pass_login.yml
- import_playbook: base/f2b.yml
- import_playbook: base/monitoring.yml

View file

@ -0,0 +1,5 @@
---
- hosts: laptop
roles:
- { role: mgrote.i3, tags: "i3", become: true }
- { role: mgrote.polybar, tags: "polybar", become: true }

View file

@ -1,18 +0,0 @@
---
- hosts: all
gather_facts: false
- import_playbook: 84_apt_sources.yml
- import_playbook: 85_install_packages.yml
- import_playbook: 86_unattended_upgrades.yml
- import_playbook: 87_ntp_client.yml
- import_playbook: 88_restic.yml
- import_playbook: 89_users.yml
- import_playbook: 90_tmux.yml
- import_playbook: 91_motd.yml
- import_playbook: 92_dotfiles.yml
- import_playbook: 83_vim.yml
- import_playbook: 93_postfix.yml
- import_playbook: 94_ufw.yml
- import_playbook: 95_ssh_pass_login.yml
- import_playbook: 96_f2b.yml
- import_playbook: 97_monitoring.yml

View file

@ -1,6 +0,0 @@
---
- hosts: all
gather_facts: false
- import_playbook: 1_bootstrap.yml
- import_playbook: 0_master.yml
- import_playbook: 98_update_packages.yml

View file

@ -1,16 +0,0 @@
---
- hosts: laptop
gather_facts: false
- import_playbook: ../base/85_install_packages.yml
- import_playbook: ../base/88_restic.yml
- import_playbook: ../base/89_users.yml
- import_playbook: ../base/90_tmux.yml
- import_playbook: ../base/91_motd.yml
- import_playbook: ../base/92_dotfiles.yml
- import_playbook: ../base/93_postfix.yml
- import_playbook: ../base/94_ufw.yml
- import_playbook: ../base/95_ssh_pass_login.yml
- import_playbook: ../base/96_f2b.yml
- import_playbook: ../base/83_vim.yml
- import_playbook: i3.yml
- import_playbook: polybar.yml

View file

@ -1,4 +0,0 @@
---
- hosts: laptop
roles:
- { role: mgrote.i3, tags: "i3", become: true }

View file

@ -1,4 +0,0 @@
---
- hosts: laptop
roles:
- { role: mgrote.polybar, tags: "polybar", become: true }

View file

@ -4,6 +4,7 @@
ansible.builtin.package:
name:
- polybar
- lm-sensors
state: present
- name: checkout siji font