style: linting

This commit is contained in:
VC
2024-07-05 11:53:13 +02:00
parent 66830fd2eb
commit 1f28d2242f
76 changed files with 469 additions and 335 deletions

View File

@@ -1,3 +1,5 @@
---
- name: install https transport for apt
package:
name: apt-transport-https

View File

@@ -1,5 +1,7 @@
---
- name: install aptitude
package:
name: aptitude
state: present
name: aptitude
state: present
when: ansible_facts['os_family'] == 'Debian'

View File

@@ -1,6 +1,8 @@
---
- name: copy basic bashrc files
copy:
src: files/dotbashrc
dest: /root/.bashrc
owner: root
group: root
src: files/dotbashrc
dest: /root/.bashrc
owner: root
group: root

View File

@@ -1,10 +1,11 @@
---
- name: install cron-apt
package:
name: cron-apt
state: present
name: cron-apt
state: present
- name: default configuration file
copy:
src: files/5-install
dest: /etc/cron-apt/action.d/5-install
src: files/5-install
dest: /etc/cron-apt/action.d/5-install

View File

@@ -1,3 +1,5 @@
---
- name: install cron
package:
name: cron

View File

@@ -1,3 +1,5 @@
---
- name: install curl
package:
name: curl

View File

@@ -1,4 +1,6 @@
---
- name: install gpg package
package:
name: gpg
state: present
name: gpg
state: present

View File

@@ -1,4 +1,6 @@
---
- name: install htop
package:
name: htop
state: present
name: htop
state: present

View File

@@ -1,3 +1,5 @@
---
- name: Set default locale to fr_FR.UTF-8
debconf:
name: locales
@@ -13,8 +15,8 @@
vtype: multiselect
- name: delete original locale.gen
file:
path: /etc/locale.gen
state: absent
path: /etc/locale.gen
state: absent
when: ansible_facts['env']['LANG'] != 'fr_FR.UTF-8'
- name: update original locale.gen

View File

@@ -1,3 +1,5 @@
---
- file:
src: /usr/share/zoneinfo/Europe/Paris
dest: /etc/localtime

View File

@@ -1,3 +1,5 @@
---
- name: install ping utility
package:
name: iputils-ping

View File

@@ -1,3 +1,5 @@
---
- name: ssh configuration file
template:
src: sshd_config.j2
@@ -7,15 +9,15 @@
- name: ssh keys home
authorized_key:
user: root
state: present
key: "{{ lookup('file', 'ssh/home.id_rsa.pub') }}"
user: root
state: present
key: "{{ lookup('file', 'ssh/home.id_rsa.pub') }}"
- name: ssh keys work
authorized_key:
user: root
state: present
key: "{{ lookup('file', 'ssh/work.id_rsa.pub') }}"
user: root
state: present
key: "{{ lookup('file', 'ssh/work.id_rsa.pub') }}"
- name: remove old work key
authorized_key:

View File

@@ -1,3 +1,5 @@
---
- name: install telnet
package:
name: telnet

View File

@@ -1,7 +1,9 @@
---
- name: install vim package
package:
name: vim
state: present
name: vim
state: present
- name: copy vimrc config file
copy:

View File

@@ -1,3 +1,5 @@
---
- name: install wget package
package:
name: wget