Skip to content

Import all ansible hosts and try Vagrant on them

Admin. sys. a demandé de fusionner services-faciles-doc-issue43 vers master

Working on https://gitlab.com/facil/services-faciles-doc/-/issues/43#note_451222956

Current state:

vagrant destroy
vagrant up
./runansible --limit agendadulibre

TASK [monitoring-tools : Configure munin-node] *******************************************************************************************************
fatal: [agendadulibre]: FAILED! => {                                                                                 
    "changed": false                                                                                                                                  
}                                                
                                                                                                                                                      
MSG:                                                           
                                                              
AnsibleUndefinedVariable: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_default_ipv4'


PLAY RECAP *******************************************************************************************************************************************
agendadulibre              : ok=121  changed=81   unreachable=0    failed=1    skipped=17   rescued=0    ignored=1  

=== Previous problem, solved ===

Trying to run ansible only for backupservers.agendadulibre in the hosts file and getting this error: Temporary failure resolving 'ftp.ca.debian.org'.

I believe the root cause is a few ansible step earlier which changed the nameserver.

TASK [common : Create a good resolv.conf file] *******************************************************************************************************
--- before: /etc/resolv.conf                                                                                                                          
+++ after: /home/lvu/.ansible/tmp/ansible-local-320148rkqnmhs/tmprtx9yii5/resolv.conf                                                                 
@@ -1,3 +1,2 @@                                                                                                                                       
-nameserver 10.0.2.3
+nameserver 213.186.33.99  
+domain qc.ca                        

But I've tried to force the working 10.0.2.3 nameserver with https://gitlab.com/facil/vagrant/-/commit/6c3499cdab2aec5960da7d2a78361d697428ff68 because of this https://gitlab.com/facil/ansible/-/blob/3e473328ad57ffe1c547bba056be25011481d7be/roles/common/templates/network/resolv.conf#L1-3. This should have worked but it does not. Not sure why. I am stuck and need help, @billux @mathieugp

I also notice this, which seems like a bug with the security update URL:

TASK [common : Configure APT sources.list] ***********************************************************************************************************
--- before: /etc/apt/sources.list
+++ after: /home/lvu/.ansible/tmp/ansible-local-320148rkqnmhs/tmprqhgnm78/sources.list
@@ -1,11 +1,3 @@
-# 
-
-# deb cdrom:[Debian GNU/Linux 9.12.0 _Stretch_ - Official amd64 NETINST 20200209-02:13]/ stretch main
-
-#deb cdrom:[Debian GNU/Linux 9.12.0 _Stretch_ - Official amd64 NETINST 20200209-02:13]/ stretch main
-
-deb http://deb.debian.org/debian stretch main
-deb-src http://deb.debian.org/debian stretch main
-
-deb http://security.debian.org/debian-security stretch/updates main
-deb-src http://security.debian.org/debian-security stretch/updates main
+deb http://ftp.ca.debian.org/debian/ stretch main
+deb http://security.debian.org/ stretch/updates main
+deb http://ftp.ca.debian.org/debian/ stretch-updates main
Modification effectuée par Admin. sys.

Rapports de requête de fusion

Chargement en cours