[root & more] Little overall
parent
2acd6e6a0a
commit
abc6086318
|
@ -5,6 +5,5 @@
|
|||
debian_images: "{{ glob_debian_images | default({}) | combine(loc_debian_images | default({})) }}"
|
||||
service: "{{ glob_service_proxmox_user | default({}) | combine(loc_service_proxmox_user | default({})) }}"
|
||||
roles:
|
||||
- proxmox-apt-sources
|
||||
- proxmox-debian-images
|
||||
- service
|
||||
|
|
|
@ -12,22 +12,9 @@
|
|||
|
||||
- import_playbook: baie.yml
|
||||
- import_playbook: utilities.yml
|
||||
- import_playbook: slapd.yml
|
||||
- import_playbook: users.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
|
||||
vars:
|
||||
rsyslog_client: "{{ glob_rsyslog_client | default({}) | combine(loc_rsyslog_client | default({})) }}"
|
||||
|
@ -45,3 +32,7 @@
|
|||
- import_playbook: borgbackup_client.yml
|
||||
- import_playbook: network_interfaces.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
|
||||
---
|
||||
- import_playbook: ssh_known_hosts.yml
|
||||
|
||||
- hosts: server
|
||||
vars:
|
||||
root: "{{ glob_root | default({}) | combine(loc_root | default({})) }}"
|
||||
|
@ -12,7 +10,3 @@
|
|||
- sudo
|
||||
- ntp-client
|
||||
- root-config
|
||||
|
||||
- hosts: server,!virtu
|
||||
roles:
|
||||
- openssh
|
||||
|
|
|
@ -4,14 +4,3 @@
|
|||
roles:
|
||||
- qemu-guest-agent
|
||||
- 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
|
||||
- git # code versioning
|
||||
- htop # better than top
|
||||
- iotop # monitor i/o
|
||||
- less # i like cats
|
||||
- lsb-release # needed to autodetect Debian version
|
||||
- lsscsi # to list SCSI devices
|
||||
- molly-guard # prevent reboot
|
||||
- nano # for vulcain
|
||||
- needrestart # ask to restart services after upgrade
|
||||
- resolvconf # for dns configuration in network interfaces
|
||||
- screen # Vulcain asked for this
|
||||
- sudo
|
||||
- tmux # better than screen
|
||||
|
|
|
@ -2,7 +2,9 @@
|
|||
- name: Install vlan support
|
||||
apt:
|
||||
update_cache: true
|
||||
name: vlan
|
||||
name:
|
||||
- vlan
|
||||
- resolvconf
|
||||
state: present
|
||||
register: apt_result
|
||||
retries: 3
|
||||
|
@ -14,11 +16,6 @@
|
|||
dest: /etc/network/interfaces
|
||||
mode: 0644
|
||||
|
||||
- name: Remove cloud-init interface configuration
|
||||
file:
|
||||
path: /etc/network/interfaces.d/50-cloud-init
|
||||
state: absent
|
||||
|
||||
- name: Deploy interfaces config
|
||||
template:
|
||||
src: network/interfaces.d/ifalias.j2
|
||||
|
|
|
@ -16,8 +16,7 @@
|
|||
register: apt_result
|
||||
retries: 3
|
||||
until: apt_result is succeeded
|
||||
when:
|
||||
- ansible_lsb.codename == 'bullseye'
|
||||
when: ansible_distribution_release == 'bullseye'
|
||||
|
||||
- name: Make Prometheus node-exporter listen on adm only
|
||||
lineinfile:
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
## ", ', ), >, ], and }.
|
||||
|
||||
## Use auto-indentation.
|
||||
set autoindent
|
||||
set autoindent
|
||||
|
||||
## Backup files to filename~.
|
||||
# set backup
|
||||
|
@ -242,68 +242,5 @@ set keycolor white
|
|||
# bind kdel backspace all
|
||||
|
||||
|
||||
## Nanorc files
|
||||
include "/usr/share/nano/nanorc.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"
|
||||
## Color highlighting files
|
||||
include "/usr/share/nano/*.nanorc"
|
||||
|
|
Loading…
Reference in New Issue