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
8518b767
Valider
8518b767
rédigé
Il y a 8 mois
par
Théo - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
fix: collect package facts only for servers in maintenance
parent
c870aa69
Aucune branche associée trouvée
Étiquettes
v1.1.13
Aucune requête de fusion associée trouvée
Modifications
1
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
1 fichier modifié
tasks/main.yml
+4
-1
4 ajouts, 1 suppression
tasks/main.yml
avec
4 ajouts
et
1 suppression
tasks/main.yml
+
4
−
1
Voir le fichier @
8518b767
...
@@ -319,13 +319,14 @@
...
@@ -319,13 +319,14 @@
changed_when
:
false
changed_when
:
false
register
:
known_hosts_line
register
:
known_hosts_line
with_items
:
"
{{
groups.backup_server
}}"
with_items
:
"
{{
groups.backup_server
}}"
when
:
inventory_hostname in groups.maintenance_contract
-
name
:
Add backup servers in root known host
-
name
:
Add backup servers in root known host
ansible.builtin.known_hosts
:
ansible.builtin.known_hosts
:
hash_host
:
true
hash_host
:
true
key
:
"
{{
hostvars[item['item']].host_server_known_entry
}}"
key
:
"
{{
hostvars[item['item']].host_server_known_entry
}}"
name
:
"
[{{
hostvars[item['item']].ansible_host
}}]:{{
default_sshd_port
}}"
name
:
"
[{{
hostvars[item['item']].ansible_host
}}]:{{
default_sshd_port
}}"
when
:
item.found is not defined
when
:
inventory_hostname in groups.maintenance_contract and
item.found is not defined
with_items
:
"
{{
known_hosts_line.results
}}"
with_items
:
"
{{
known_hosts_line.results
}}"
-
name
:
Copy Installed Package Listing script on server
-
name
:
Copy Installed Package Listing script on server
...
@@ -335,6 +336,7 @@
...
@@ -335,6 +336,7 @@
owner
:
root
owner
:
root
group
:
root
group
:
root
mode
:
'
0700'
mode
:
'
0700'
when
:
inventory_hostname in groups.maintenance_contract
-
name
:
Disable e-mailing of crontab
-
name
:
Disable e-mailing of crontab
ansible.builtin.cron
:
ansible.builtin.cron
:
...
@@ -348,3 +350,4 @@
...
@@ -348,3 +350,4 @@
minute
:
"
43"
minute
:
"
43"
hour
:
"
0"
hour
:
"
0"
job
:
/root/collect_installed_packages_facts.sh
job
:
/root/collect_installed_packages_facts.sh
when
:
inventory_hostname in groups.maintenance_contract
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