[root & more] Little overall
parent
2acd6e6a0a
commit
abc6086318
|
@ -5,6 +5,5 @@
|
||||||
debian_images: "{{ glob_debian_images | default({}) | combine(loc_debian_images | default({})) }}"
|
debian_images: "{{ glob_debian_images | default({}) | combine(loc_debian_images | default({})) }}"
|
||||||
service: "{{ glob_service_proxmox_user | default({}) | combine(loc_service_proxmox_user | default({})) }}"
|
service: "{{ glob_service_proxmox_user | default({}) | combine(loc_service_proxmox_user | default({})) }}"
|
||||||
roles:
|
roles:
|
||||||
- proxmox-apt-sources
|
|
||||||
- proxmox-debian-images
|
- proxmox-debian-images
|
||||||
- service
|
- service
|
||||||
|
|
|
@ -12,22 +12,9 @@
|
||||||
|
|
||||||
- import_playbook: baie.yml
|
- import_playbook: baie.yml
|
||||||
- import_playbook: utilities.yml
|
- import_playbook: utilities.yml
|
||||||
- import_playbook: slapd.yml
|
- import_playbook: users.yml
|
||||||
- import_playbook: proxmox.yml
|
- import_playbook: proxmox.yml
|
||||||
|
|
||||||
- hosts: server,!sssd
|
|
||||||
vars:
|
|
||||||
ldap: "{{ glob_ldap | combine(loc_ldap | default({})) }}"
|
|
||||||
roles:
|
|
||||||
- ldap-client
|
|
||||||
|
|
||||||
- hosts: server,!ovh_physical,!tealc.adm.crans.org,!sam.adm.crans.org,!routeur-sam.adm.crans.org,!ft.adm.crans.org,!thot.adm.crans.org
|
|
||||||
vars:
|
|
||||||
nfs_mount: "{{ glob_home_nounou | default({}) | combine(loc_home_nounou | default({})) }}"
|
|
||||||
roles:
|
|
||||||
- nfs-common
|
|
||||||
- nfs-mount
|
|
||||||
|
|
||||||
- hosts: server, !rsyslog_server
|
- hosts: server, !rsyslog_server
|
||||||
vars:
|
vars:
|
||||||
rsyslog_client: "{{ glob_rsyslog_client | default({}) | combine(loc_rsyslog_client | default({})) }}"
|
rsyslog_client: "{{ glob_rsyslog_client | default({}) | combine(loc_rsyslog_client | default({})) }}"
|
||||||
|
@ -45,3 +32,7 @@
|
||||||
- import_playbook: borgbackup_client.yml
|
- import_playbook: borgbackup_client.yml
|
||||||
- import_playbook: network_interfaces.yml
|
- import_playbook: network_interfaces.yml
|
||||||
- import_playbook: nullmailer.yml
|
- import_playbook: nullmailer.yml
|
||||||
|
|
||||||
|
- hosts: server,!virtu
|
||||||
|
roles:
|
||||||
|
- openssh
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/usr/bin/env ansible-playbook
|
||||||
|
---
|
||||||
|
- hosts: server,!sssd
|
||||||
|
vars:
|
||||||
|
ldap: "{{ glob_ldap | combine(loc_ldap | default({})) }}"
|
||||||
|
roles:
|
||||||
|
- ldap-client
|
||||||
|
|
||||||
|
- hosts: server,!ovh_physical,!tealc.adm.crans.org,!sam.adm.crans.org,!routeur-sam.adm.crans.org,!ft.adm.crans.org,!thot.adm.crans.org
|
||||||
|
vars:
|
||||||
|
nfs_mount: "{{ glob_home_nounou | default({}) | combine(loc_home_nounou | default({})) }}"
|
||||||
|
roles:
|
||||||
|
- nfs-common
|
||||||
|
- nfs-mount
|
|
@ -1,7 +1,5 @@
|
||||||
#!/usr/bin/env ansible-playbook
|
#!/usr/bin/env ansible-playbook
|
||||||
---
|
---
|
||||||
- import_playbook: ssh_known_hosts.yml
|
|
||||||
|
|
||||||
- hosts: server
|
- hosts: server
|
||||||
vars:
|
vars:
|
||||||
root: "{{ glob_root | default({}) | combine(loc_root | default({})) }}"
|
root: "{{ glob_root | default({}) | combine(loc_root | default({})) }}"
|
||||||
|
@ -12,7 +10,3 @@
|
||||||
- sudo
|
- sudo
|
||||||
- ntp-client
|
- ntp-client
|
||||||
- root-config
|
- root-config
|
||||||
|
|
||||||
- hosts: server,!virtu
|
|
||||||
roles:
|
|
||||||
- openssh
|
|
||||||
|
|
|
@ -4,14 +4,3 @@
|
||||||
roles:
|
roles:
|
||||||
- qemu-guest-agent
|
- qemu-guest-agent
|
||||||
- serial-tty
|
- serial-tty
|
||||||
|
|
||||||
- hosts: crans_vm
|
|
||||||
tasks:
|
|
||||||
- name: Remove cloud-init
|
|
||||||
apt:
|
|
||||||
name: cloud-init
|
|
||||||
state: absent
|
|
||||||
purge: true
|
|
||||||
register: apt_result
|
|
||||||
retries: 3
|
|
||||||
until: apt_result is succeeded
|
|
||||||
|
|
|
@ -14,14 +14,12 @@
|
||||||
- emacs-nox # for maman
|
- emacs-nox # for maman
|
||||||
- git # code versioning
|
- git # code versioning
|
||||||
- htop # better than top
|
- htop # better than top
|
||||||
- iotop # monitor i/o
|
|
||||||
- less # i like cats
|
- less # i like cats
|
||||||
- lsb-release # needed to autodetect Debian version
|
- lsb-release # needed to autodetect Debian version
|
||||||
- lsscsi # to list SCSI devices
|
- lsscsi # to list SCSI devices
|
||||||
- molly-guard # prevent reboot
|
- molly-guard # prevent reboot
|
||||||
- nano # for vulcain
|
- nano # for vulcain
|
||||||
- needrestart # ask to restart services after upgrade
|
- needrestart # ask to restart services after upgrade
|
||||||
- resolvconf # for dns configuration in network interfaces
|
|
||||||
- screen # Vulcain asked for this
|
- screen # Vulcain asked for this
|
||||||
- sudo
|
- sudo
|
||||||
- tmux # better than screen
|
- tmux # better than screen
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
- name: Install vlan support
|
- name: Install vlan support
|
||||||
apt:
|
apt:
|
||||||
update_cache: true
|
update_cache: true
|
||||||
name: vlan
|
name:
|
||||||
|
- vlan
|
||||||
|
- resolvconf
|
||||||
state: present
|
state: present
|
||||||
register: apt_result
|
register: apt_result
|
||||||
retries: 3
|
retries: 3
|
||||||
|
@ -14,11 +16,6 @@
|
||||||
dest: /etc/network/interfaces
|
dest: /etc/network/interfaces
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
- name: Remove cloud-init interface configuration
|
|
||||||
file:
|
|
||||||
path: /etc/network/interfaces.d/50-cloud-init
|
|
||||||
state: absent
|
|
||||||
|
|
||||||
- name: Deploy interfaces config
|
- name: Deploy interfaces config
|
||||||
template:
|
template:
|
||||||
src: network/interfaces.d/ifalias.j2
|
src: network/interfaces.d/ifalias.j2
|
||||||
|
|
|
@ -16,8 +16,7 @@
|
||||||
register: apt_result
|
register: apt_result
|
||||||
retries: 3
|
retries: 3
|
||||||
until: apt_result is succeeded
|
until: apt_result is succeeded
|
||||||
when:
|
when: ansible_distribution_release == 'bullseye'
|
||||||
- ansible_lsb.codename == 'bullseye'
|
|
||||||
|
|
||||||
- name: Make Prometheus node-exporter listen on adm only
|
- name: Make Prometheus node-exporter listen on adm only
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
## ", ', ), >, ], and }.
|
## ", ', ), >, ], and }.
|
||||||
|
|
||||||
## Use auto-indentation.
|
## Use auto-indentation.
|
||||||
set autoindent
|
set autoindent
|
||||||
|
|
||||||
## Backup files to filename~.
|
## Backup files to filename~.
|
||||||
# set backup
|
# set backup
|
||||||
|
@ -242,68 +242,5 @@ set keycolor white
|
||||||
# bind kdel backspace all
|
# bind kdel backspace all
|
||||||
|
|
||||||
|
|
||||||
## Nanorc files
|
## Color highlighting files
|
||||||
include "/usr/share/nano/nanorc.nanorc"
|
include "/usr/share/nano/*.nanorc"
|
||||||
|
|
||||||
## C/C++
|
|
||||||
include "/usr/share/nano/c.nanorc"
|
|
||||||
|
|
||||||
## Cascading Style Sheets
|
|
||||||
include "/usr/share/nano/css.nanorc"
|
|
||||||
|
|
||||||
## Debian files
|
|
||||||
include "/usr/share/nano/debian.nanorc"
|
|
||||||
|
|
||||||
## Gentoo files
|
|
||||||
include "/usr/share/nano/gentoo.nanorc"
|
|
||||||
|
|
||||||
## HTML
|
|
||||||
include "/usr/share/nano/html.nanorc"
|
|
||||||
|
|
||||||
## PHP
|
|
||||||
include "/usr/share/nano/php.nanorc"
|
|
||||||
|
|
||||||
## TCL
|
|
||||||
include "/usr/share/nano/tcl.nanorc"
|
|
||||||
|
|
||||||
## TeX
|
|
||||||
include "/usr/share/nano/tex.nanorc"
|
|
||||||
|
|
||||||
## Quoted emails (under e.g. mutt)
|
|
||||||
include "/usr/share/nano/mutt.nanorc"
|
|
||||||
|
|
||||||
## Patch files
|
|
||||||
include "/usr/share/nano/patch.nanorc"
|
|
||||||
|
|
||||||
## Manpages
|
|
||||||
include "/usr/share/nano/man.nanorc"
|
|
||||||
|
|
||||||
## Groff
|
|
||||||
include "/usr/share/nano/groff.nanorc"
|
|
||||||
|
|
||||||
## Perl
|
|
||||||
include "/usr/share/nano/perl.nanorc"
|
|
||||||
|
|
||||||
## Python
|
|
||||||
include "/usr/share/nano/python.nanorc"
|
|
||||||
|
|
||||||
## Ruby
|
|
||||||
include "/usr/share/nano/ruby.nanorc"
|
|
||||||
|
|
||||||
## Java
|
|
||||||
include "/usr/share/nano/java.nanorc"
|
|
||||||
|
|
||||||
## AWK
|
|
||||||
include "/usr/share/nano/awk.nanorc"
|
|
||||||
|
|
||||||
## Assembler
|
|
||||||
include "/usr/share/nano/asm.nanorc"
|
|
||||||
|
|
||||||
## Bourne shell scripts
|
|
||||||
include "/usr/share/nano/sh.nanorc"
|
|
||||||
|
|
||||||
## POV-Ray
|
|
||||||
include "/usr/share/nano/pov.nanorc"
|
|
||||||
|
|
||||||
## XML-type files
|
|
||||||
include "/usr/share/nano/xml.nanorc"
|
|
||||||
|
|
Loading…
Reference in New Issue