Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit b9963dc2 authored by freezed's avatar freezed :mountain:
Browse files

:twisted_rightwards_arrows: Merge branch 'system'

parents b379938b a3aaab14
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# This file is managed by Ansible # # This file is managed by Ansible #
# Manual edition will be overridden # # Manual edition will be overridden #
# # # #
# https://lab.frogg.it/fcode/ansible/debian # # https://lab.frogg.it/freezed/ansible-debian #
# # # #
# ############################################# # # ############################################# #
......
...@@ -23,6 +23,26 @@ ...@@ -23,6 +23,26 @@
direction: outgoing direction: outgoing
policy: allow policy: allow
- name: UFW | allow local IPs on port 22 IN
when: inventory_hostname in groups.station
loop: "{{ groups['station'] }}"
community.general.ufw:
direction: in
port: '22'
proto: tcp
rule: allow
src: "{{hostvars[item]['ansible_host']}}"
- name: "UFW | allow {{gateway}} IP on port 22 IN"
when: (inventory_hostname in groups.production) or
(inventory_hostname in groups.devel)
community.general.ufw:
direction: in
port: '22'
proto: tcp
rule: allow
src: "{{gateway}}"
- name: UFW | limit tcp port 22 IN - name: UFW | limit tcp port 22 IN
community.general.ufw: community.general.ufw:
direction: in direction: in
......
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
tasks: tasks:
- name: HOSTNAME | setup
ansible.builtin.hostname:
name: "{{ ansible_hostname }}"
- name: IMPORT_TASKS | firewall - name: IMPORT_TASKS | firewall
ansible.builtin.import_tasks: firewall.yml ansible.builtin.import_tasks: firewall.yml
......
--- ---
- name: "SHELL | set zsh for {{ my_user }}" - name: "SHELL | set zsh for {{ my_user }}"
when: inventory_hostname in groups.station
ansible.builtin.user: ansible.builtin.user:
name: "{{ my_user }}" name: "{{ my_user }}"
shell: /bin/zsh shell: /bin/zsh
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# This file is managed by Ansible # # This file is managed by Ansible #
# Manual edition will be overridden # # Manual edition will be overridden #
# # # #
# https://lab.frogg.it/fcode/ansible/debian # # https://lab.frogg.it/freezed/ansible-debian #
# # # #
# ############################################# # # ############################################# #
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# This file is managed by Ansible # # This file is managed by Ansible #
# Manual edition will be overridden # # Manual edition will be overridden #
# # # #
# https://lab.frogg.it/fcode/ansible/debian # # https://lab.frogg.it/freezed/ansible-debian #
# # # #
# ############################################# # # ############################################# #
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
" This file is managed by Ansible " " This file is managed by Ansible "
" Manual edition will be overridden " " Manual edition will be overridden "
" " " "
" https://lab.frogg.it/fcode/ansible/debian " " https://lab.frogg.it/freezed/ansible-debian "
" http://formation-debian.via.ecp.fr/ " " http://formation-debian.via.ecp.fr/ "
" " " "
" """"""""""""""""""""""""""""""""""""""""""""" " " """"""""""""""""""""""""""""""""""""""""""""" "
...@@ -98,4 +98,4 @@ set incsearch ...@@ -98,4 +98,4 @@ set incsearch
"set hlsearch "set hlsearch
" Décommentez la ligne suivante si vous voulez afficher les numéros de ligne " Décommentez la ligne suivante si vous voulez afficher les numéros de ligne
"set number set number relativenumber
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# This file is managed by Ansible # # This file is managed by Ansible #
# Manual edition will be overridden # # Manual edition will be overridden #
# # # #
# https://lab.frogg.it/fcode/ansible/debian # # https://lab.frogg.it/freezed/ansible-debian #
# # # #
# ############################################# # # ############################################# #
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# This file is managed by Ansible # # This file is managed by Ansible #
# Manual edition will be overridden # # Manual edition will be overridden #
# # # #
# https://lab.frogg.it/fcode/ansible/debian # # https://lab.frogg.it/freezed/ansible-debian #
# # # #
# ############################################# # # ############################################# #
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# This file is managed by Ansible # # This file is managed by Ansible #
# Manual edition will be overridden # # Manual edition will be overridden #
# # # #
# https://lab.frogg.it/fcode/ansible/debian # # https://lab.frogg.it/freezed/ansible-debian #
# # # #
# ############################################# # # ############################################# #
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# This file is managed by Ansible # # This file is managed by Ansible #
# Manual edition will be overridden # # Manual edition will be overridden #
# # # #
# https://lab.frogg.it/fcode/ansible/debian # # https://lab.frogg.it/freezed/ansible-debian #
# from http://formation-debian.via.ecp.fr # # from http://formation-debian.via.ecp.fr #
# # # #
# ############################################# # # ############################################# #
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# This file is managed by Ansible # # This file is managed by Ansible #
# Manual edition will be overridden # # Manual edition will be overridden #
# # # #
# https://lab.frogg.it/fcode/ansible/debian # # https://lab.frogg.it/freezed/ansible-debian #
# # # #
# ############################################# # # ############################################# #
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# This file is managed by Ansible # # This file is managed by Ansible #
# Manual edition will be overridden # # Manual edition will be overridden #
# # # #
# https://lab.frogg.it/fcode/ansible/debian # # https://lab.frogg.it/freezed/ansible-debian #
# # # #
# ############################################# # # ############################################# #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment