Remove hashicorp repo

This commit is contained in:
Quentin 2021-04-09 14:05:32 +02:00
parent 1fd6aaafe6
commit 498078881c
Signed by: quentin
GPG Key ID: A98E9B769E4FF428
2 changed files with 4 additions and 45 deletions

View File

@ -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

View File

@ -6,7 +6,7 @@
- name: "Upgrade system"
apt:
upgrade: dist # Should we do a full uprade instead of a dist one?
upgrade: full
update_cache: yes
cache_valid_time: 3600
autoclean: yes
@ -34,18 +34,15 @@
- strace
- tcpdump
# Networking
- dnsutils # now called bind9-dnsutils (still valid)
- bind9-dnsutils
- ethtool
- iproute2 # advanced net-tools
- iptables # legacy firewall (still used by diplonat)
- iptables-persistent
- net-tools # basic network tools
- nftables # iptables' successor (will replace it eventually)
# Optional / Dispensable
#- docker.io # Adrien n'approuve pas (il faut utiliser le repo Docker)
# Filesystems / Disk Utils
- parted
#- btrfs-tools
#- libnss-resolve # provides DNS/LLMNR utilities via systemd-resolved
state: present
# Install Docker if need be
@ -62,20 +59,6 @@
include_tasks: docker.yml
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
- name: "Passwordless sudo"
@ -84,4 +67,4 @@
state: present
regexp: '^%sudo'
line: '%sudo ALL=(ALL) NOPASSWD: ALL'
validate: 'visudo -cf %s'
validate: 'visudo -cf %s'