base config files
This commit is contained in:
parent
32dacb166a
commit
8d061c92d8
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- hosts: "{{ ip_addr }}"
|
||||||
|
become: yes
|
||||||
|
become_method: sudo
|
||||||
|
gather_facts: no
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: "example"
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- include_tasks: roles/add-repos-vn/handlers/main.yaml
|
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- hosts: "{{ ip_addr }}"
|
||||||
|
become: yes
|
||||||
|
become_method: sudo
|
||||||
|
gather_facts: no
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: "example"
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- include_tasks: roles/base-config-debian-os/handlers/main.yaml
|
|
@ -0,0 +1,60 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- hosts: "{{ ip_addr }}"
|
||||||
|
become: yes
|
||||||
|
become_method: sudo
|
||||||
|
gather_facts: yes
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: "[CREATE AWX-USER] Create awx user and config ssh-key"
|
||||||
|
import_role:
|
||||||
|
name: create-awx-user-and-config
|
||||||
|
tags: awx-user_config
|
||||||
|
|
||||||
|
- name: "[HARDNENING] Configure SSH root user"
|
||||||
|
import_role:
|
||||||
|
name: hardnening-config-root-user
|
||||||
|
tags: hardnening-config-root_config
|
||||||
|
|
||||||
|
- name: "[BASE CONFIG] Configure debian os"
|
||||||
|
import_role:
|
||||||
|
name: base-config-debian-os
|
||||||
|
tags: base-os_config
|
||||||
|
|
||||||
|
- name: "[GUEST SIDE] Install guest side"
|
||||||
|
import_role:
|
||||||
|
name: server-type
|
||||||
|
tags: server-type_config
|
||||||
|
|
||||||
|
- name: "[CONFIG REPOS] Add-repos-vn"
|
||||||
|
import_role:
|
||||||
|
name: add-repos-vn
|
||||||
|
tags: add-repos-vn_config
|
||||||
|
|
||||||
|
- name: "[CONFIG VIM] Configure vim options"
|
||||||
|
import_role:
|
||||||
|
name: vim-options
|
||||||
|
tags: vim-options_config
|
||||||
|
|
||||||
|
- name: "[CONFIG BASHRC] Configure bashrc"
|
||||||
|
import_role:
|
||||||
|
name: configure-bashrc
|
||||||
|
tags: configure-bashrc_config
|
||||||
|
|
||||||
|
- name: "[CONFIG USRMERGE] Configure usrmerge"
|
||||||
|
import_role:
|
||||||
|
name: configure-usrmerge
|
||||||
|
tags: configure-usrmerge_config
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- include_tasks: roles/{{ item }}/handlers/main.yaml
|
||||||
|
with_items:
|
||||||
|
- create-awx-user-and-config
|
||||||
|
- hardnening-config-root-user
|
||||||
|
- base-config-debian-os
|
||||||
|
- server-type
|
||||||
|
- add-repos-vn
|
||||||
|
- vim-options
|
||||||
|
- configure-bashrc
|
||||||
|
- configure-usrmerge
|
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- hosts: "{{ ip_addr }}"
|
||||||
|
become: yes
|
||||||
|
become_method: sudo
|
||||||
|
gather_facts: no
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: "example"
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- include_tasks: roles/configure-bashrc/handlers/main.yaml
|
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- hosts: "{{ ip_addr }}"
|
||||||
|
become: yes
|
||||||
|
become_method: sudo
|
||||||
|
gather_facts: no
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: "example"
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- include_tasks: roles/configure-usrmerge/handlers/main.yaml
|
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- hosts: "{{ ip_addr }}"
|
||||||
|
become: yes
|
||||||
|
become_method: sudo
|
||||||
|
gather_facts: no
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: "[CREATE AWX-USER] Create awx user and config ssh-key"
|
||||||
|
import_role:
|
||||||
|
name: create-awx-user-and-config
|
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- hosts: "{{ ip_addr }}"
|
||||||
|
become: yes
|
||||||
|
become_method: sudo
|
||||||
|
gather_facts: no
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: "[HARDNENING] Configure SSH root user"
|
||||||
|
import_role:
|
||||||
|
name: hardnening-config-root-user
|
||||||
|
|
||||||
|
# handlers:
|
||||||
|
# - include_tasks: roles/hardnening-config-root-user/handlers/main.yaml
|
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
# vars files
|
||||||
|
vars_files:
|
||||||
|
|
||||||
|
# create user awx-user on debian os
|
||||||
|
- name: Create a ssh user awx-user in the system
|
||||||
|
user:
|
||||||
|
name: awx-user
|
||||||
|
password: '*'
|
||||||
|
shell: /bin/bash
|
||||||
|
groups: sudo
|
||||||
|
state: present
|
||||||
|
comment: ssh user
|
||||||
|
|
||||||
|
# add ssh-key pub to user awx-user
|
||||||
|
- name: Adding ssh-pub-key to user awx-user
|
||||||
|
authorized_key:
|
||||||
|
user: awx-user
|
||||||
|
key: "{{ key_to_add }}"
|
||||||
|
|
||||||
|
# add awx-user to sudoers
|
|
@ -0,0 +1,2 @@
|
||||||
|
# variables
|
||||||
|
key_to_add: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDjeIZVyppFK/dqOUa1PxgSeRVWk7MFmANYvSs+VHHnD4/BE//K8AxlxnyLl4e6jAcBFoIu1JLxbRKdOhx+Zgkq5OmEzp/XKzfEvnEU5CP+W2+5MwfkUQ3TetJsOoHiP/qYWPqqqfDFqNM1xs9am5Frv9BVu5pFiSO9oS14xVAlUOwnONQnRtAbuBOmMldpzxmuFY+Rs3G2MmokcOYrs5Z3TdCOG9bDGg8erzWklLW+aRYdXqMEZpwIZPcOFy6JXEyZ/9IpCLBN58IMr0RypFbgWb2Vo05iTI5j99Pzn//FgAhe6BXRyHSGOJ29hmKugt9sIY1N/H6aYqtTVR5EEIngY1XHtFywU1+qtYHMs8PB9Hl87zUkla0+S5Zn8q92y7DQFsOZ9ND6syEzWhiCP1ic3Wo76TVbuNoTW/XvgZnemx1epuOqDj9S7iGTSHMvvSop8z5hU2EQiVkgRPl4cM2fi0vF513ivq5IbCgg2VfXUOLM5E5y0TI7lzBriTtCuIk= awx@awx.verdnatura.es
|
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- hosts: "{{ ip_addr }}"
|
||||||
|
become: yes
|
||||||
|
become_method: sudo
|
||||||
|
gather_facts: no
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: "example"
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- include_tasks: roles/server-type/handlers/main.yaml
|
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- hosts: "{{ ip_addr }}"
|
||||||
|
become: yes
|
||||||
|
become_method: sudo
|
||||||
|
gather_facts: no
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: "example"
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- include_tasks: roles/vim-options/handlers/main.yaml
|
Loading…
Reference in New Issue