Remove hashicorp repo
This commit is contained in:
parent
1fd6aaafe6
commit
498078881c
2 changed files with 4 additions and 45 deletions
|
@ -1,24 +0,0 @@
|
||||||
- name: "Add Hashicorps's official GPG key to apt"
|
|
||||||
ansible.builtin.apt_key:
|
|
||||||
url: https://apt.releases.hashicorp.com/gpg
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: "Add Hashicorp's repository to APT sources list"
|
|
||||||
ansible.builtin.apt_repository:
|
|
||||||
repo: "deb [arch={{ architecture_map[ansible_architecture] }}] https://apt.releases.hashicorp.com {{ ansible_distribution_release }} main"
|
|
||||||
state: present
|
|
||||||
vars:
|
|
||||||
architecture_map:
|
|
||||||
"x86_64": "amd64"
|
|
||||||
"aarch64": "arm64"
|
|
||||||
"aarch": "arm64"
|
|
||||||
"armhf": "armhf"
|
|
||||||
"armv7l": "armhf"
|
|
||||||
|
|
||||||
- name: "Install Nomad & Consul"
|
|
||||||
ansible.builtin.apt:
|
|
||||||
state: present
|
|
||||||
update_cache: yes
|
|
||||||
name:
|
|
||||||
- nomad
|
|
||||||
- consul
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
- name: "Upgrade system"
|
- name: "Upgrade system"
|
||||||
apt:
|
apt:
|
||||||
upgrade: dist # Should we do a full uprade instead of a dist one?
|
upgrade: full
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
cache_valid_time: 3600
|
cache_valid_time: 3600
|
||||||
autoclean: yes
|
autoclean: yes
|
||||||
|
@ -34,18 +34,15 @@
|
||||||
- strace
|
- strace
|
||||||
- tcpdump
|
- tcpdump
|
||||||
# Networking
|
# Networking
|
||||||
- dnsutils # now called bind9-dnsutils (still valid)
|
- bind9-dnsutils
|
||||||
- ethtool
|
- ethtool
|
||||||
- iproute2 # advanced net-tools
|
- iproute2 # advanced net-tools
|
||||||
- iptables # legacy firewall (still used by diplonat)
|
- iptables # legacy firewall (still used by diplonat)
|
||||||
- iptables-persistent
|
- iptables-persistent
|
||||||
- net-tools # basic network tools
|
- net-tools # basic network tools
|
||||||
- nftables # iptables' successor (will replace it eventually)
|
- nftables # iptables' successor (will replace it eventually)
|
||||||
# Optional / Dispensable
|
# Filesystems / Disk Utils
|
||||||
#- docker.io # Adrien n'approuve pas (il faut utiliser le repo Docker)
|
|
||||||
- parted
|
- parted
|
||||||
#- btrfs-tools
|
|
||||||
#- libnss-resolve # provides DNS/LLMNR utilities via systemd-resolved
|
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
# Install Docker if need be
|
# Install Docker if need be
|
||||||
|
@ -62,20 +59,6 @@
|
||||||
include_tasks: docker.yml
|
include_tasks: docker.yml
|
||||||
when: docker_exists.rc != 0
|
when: docker_exists.rc != 0
|
||||||
|
|
||||||
# Install Nomad & Consul if need be
|
|
||||||
|
|
||||||
- name: Check if Nomad is installed
|
|
||||||
command: 'which nomad'
|
|
||||||
args:
|
|
||||||
warn: no
|
|
||||||
register: nomad_exists
|
|
||||||
changed_when: nomad_exists.rc != 0
|
|
||||||
ignore_errors: true
|
|
||||||
|
|
||||||
- name: "Install Nomad & Consul"
|
|
||||||
include_tasks: hashicorp.yml
|
|
||||||
when: nomad_exists.rc != 0
|
|
||||||
|
|
||||||
# Cool stuff
|
# Cool stuff
|
||||||
|
|
||||||
- name: "Passwordless sudo"
|
- name: "Passwordless sudo"
|
||||||
|
@ -84,4 +67,4 @@
|
||||||
state: present
|
state: present
|
||||||
regexp: '^%sudo'
|
regexp: '^%sudo'
|
||||||
line: '%sudo ALL=(ALL) NOPASSWD: ALL'
|
line: '%sudo ALL=(ALL) NOPASSWD: ALL'
|
||||||
validate: 'visudo -cf %s'
|
validate: 'visudo -cf %s'
|
||||||
|
|
Reference in a new issue