Fix up some weird issues

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:19 -04:00
parent 644097f290
commit 2650014ec1
2 changed files with 22 additions and 8 deletions

View File

@ -30,7 +30,7 @@
- name: regather local facts
setup:
gather_subset: "!all,!any,local"
gather_subset: "local"
when: installed_facts.changed
- debug:
@ -84,6 +84,13 @@
- { src: "etc/apt/sources.list.{{ ansible_machine }}.j2", dest: "/etc/apt/sources.list" }
tags: apt
- name: add key for bonilan repo
apt_key:
url: "https://repo.bonifacelabs.net/debian/bonifacelabs_signing_key.pub"
id: "83D07192314835D4"
state: present
tags: apt
#
# Safe apt upgrades (on first install only)
#
@ -170,6 +177,9 @@
- less
- vim
- git
- vlan
- bridge-utils
- ifenslave
- nmap
- netcat-openbsd
- htop
@ -586,8 +596,10 @@
- name: add authorized keys
authorized_key:
user: "deploy"
key: "{{ item.key }}"
with_items: "{{ admin_users }}"
key: "{{ item.1 }}"
with_subelements:
- "{{ admin_users }}"
- keys
tags: users
# admin_users
@ -627,9 +639,11 @@
- name: add authorized keys
authorized_key:
user: "{{ item.name }}"
key: "{{ item.key }}"
with_items: "{{ admin_users }}"
user: "{{ item.0.name }}"
key: "{{ item.1 }}"
with_subelements:
- "{{ admin_users }}"
- keys
tags: users
- name: write bashrc to homedir

View File

@ -10,5 +10,5 @@ deb-src http://security.debian.org/ {{ ansible_distribution_release }}/updates m
deb http://debian.mirror.rafal.ca/debian/ {{ ansible_distribution_release }}-updates main contrib
deb-src http://debian.mirror.rafal.ca/debian/ {{ ansible_distribution_release }}-updates main contrib
deb https://repo.bonifacelabs.net/debian/ {{ ansible_distribution_release }}-updates main
deb-src https://repo.bonifacelabs.net/debian/ {{ ansible_distribution_release }}-updates main
deb https://repo.bonifacelabs.net/debian/ {{ ansible_distribution_release }} main
deb-src https://repo.bonifacelabs.net/debian/ {{ ansible_distribution_release }} main