| # lxd-finish/tasks/main.yml |
| - name: Verify that we can log into every container |
| ansible containers -u ubuntu |
| - skip_ansible_lint # connectivity check |
| - name: Verify that containers have external connectivity |
| ansible containers -u ubuntu |
| -a "url=http://www.google.com" |
| - skip_ansible_lint # connectivity check |
| - name: Update CA certificates in containers |
| ansible containers -b -u ubuntu |
| -a "update-ca-certificates" |
| - skip_ansible_lint # running a sub job |
| - name: Have containers use the apt-cache |
| ansible containers -b -u ubuntu |
| -a "dest=/etc/apt/apt.conf.d/02apt-cacher-ng create=yes mode=0644 owner=root group=root regexp='^Acquire' line='Acquire::http { Proxy \"http://{{ apt_cacher_name }}:{{ apt_cacher_port | default('3142') }}\"; };'" |
| - skip_ansible_lint # running a sub job |
| ansible containers -b -u ubuntu |
| -a "update_cache=yes cache_valid_time=3600" |
| - skip_ansible_lint # running a sub job |
| - name: Update software in all the containers |
| ansible containers -b -u ubuntu |
| - skip_ansible_lint # running a sub job |