Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
I
init_server
Gestion
Activité
Membres
Labels
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Le Filament
Ansible Roles
init_server
Validations
a7fd1fd5
Valider
a7fd1fd5
rédigé
Il y a 2 ans
par
Théo - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
change: add docker, elastic and gitlab to unattended upgrade origines
parent
67ed8d91
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
2
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
tasks/main.yml
+9
-2
9 ajouts, 2 suppressions
tasks/main.yml
templates/apt-unattended-upgrades.j2
+9
-3
9 ajouts, 3 suppressions
templates/apt-unattended-upgrades.j2
avec
18 ajouts
et
5 suppressions
tasks/main.yml
+
9
−
2
Voir le fichier @
a7fd1fd5
...
...
@@ -95,21 +95,24 @@
purge
:
true
state
:
absent
when
:
ansible_os_family == "Debian" and inventory_hostname not in groups.maintenance_contract
tags
:
unattended-upgrade
-
name
:
Install Unattended Upgrades
apt
:
name
:
"
unattended-upgrades"
state
:
present
when
:
ansible_os_family == "Debian" and inventory_hostname in groups.maintenance_contract
tags
:
unattended-upgrade
-
name
:
Copy Unattended Upgrades configuration
ansible.builtin.copy
:
src
:
'
apt-unattended-upgrades'
template
:
src
:
'
apt-unattended-upgrades
.j2
'
dest
:
'
/etc/apt/apt.conf.d/50unattended-upgrades'
owner
:
root
group
:
root
mode
:
'
0644'
when
:
inventory_hostname in groups.maintenance_contract
tags
:
unattended-upgrade
-
name
:
Create apt-daily timer directory if it does not exist
ansible.builtin.file
:
...
...
@@ -119,6 +122,7 @@
group
:
root
mode
:
'
0755'
when
:
inventory_hostname in groups.maintenance_contract
tags
:
unattended-upgrade
-
name
:
override apt-daily timer
ansible.builtin.copy
:
...
...
@@ -128,6 +132,7 @@
group
:
root
mode
:
'
0644'
when
:
inventory_hostname in groups.maintenance_contract
tags
:
unattended-upgrade
notify
:
-
restart-apt-update-timer
...
...
@@ -139,6 +144,7 @@
group
:
root
mode
:
'
0755'
when
:
inventory_hostname in groups.maintenance_contract
tags
:
unattended-upgrade
-
name
:
override apt-daily-upgrade timer
ansible.builtin.copy
:
...
...
@@ -148,6 +154,7 @@
group
:
root
mode
:
'
0644'
when
:
inventory_hostname in groups.maintenance_contract
tags
:
unattended-upgrade
notify
:
-
restart-apt-upgrade-timer
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
fil
es/apt-unattended-upgrades
→
templat
es/apt-unattended-upgrades
.j2
+
9
−
3
Voir le fichier @
a7fd1fd5
...
...
@@ -2,6 +2,12 @@ Unattended-Upgrade::Allowed-Origins {
"${distro_id}:${distro_codename}";
"${distro_id}:${distro_codename}-security";
"${distro_id}:${distro_codename}-updates";
"Docker:${distro_codename}";
"elastic:stable";
{% if inventory_hostname in groups.gitlab %}
"packages.gitlab.com/gitlab/gitlab-ce:${distro_codename}";
"packages.gitlab.com/runner/gitlab-runner:${distro_codename}";
{% endif %}
};
Unattended-Upgrade::Package-Blacklist {};
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter