Comments (5)
I can't say for sure but that sounds like maybe you ran the playbook without gathering facts.
You'll need to gather_facts: True
for those ansible_*
variables to be defined. This is normal Ansible behavior.
from ansible-docker.
You shouldn't need to configure anything extra to have everything work. Just by calling the role with its current defaults you should end up with the latest Docker / Docker Compose installed and a cron job to deal with Docker related maintenance.
What held you back from it all working automatically?
Btw all of the defaults in the readme are real defaults. You can see them at https://github.com/nickjj/ansible-docker/blob/master/defaults/main.yml.
from ansible-docker.
There are a couple of predefined variables but
TASK [nickjj.docker : Configure upstream APT repository] **************************************************************************************************************************** fatal: [default]: FAILED! => {"failed": true, "msg": "The task includes an option with an undefined variable. The error was: deb [arch=amd64] https://download.docker.com/linux/{{ docker_distribution | lower }} {{ docker_distribution_release }} {{ docker_channel }}: {{ ansible_local.core.distribution_release if (ansible_local|d() and ansible_local.core|d() and ansible_local.core.distribution_release|d()) else ansible_distribution_release }}: 'ansible_distribution_release' is undefined\n\nThe error appears to have been in '/Users/artem/.ansible/roles/nickjj.docker/tasks/main.yml': line 26, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Configure upstream APT repository\n ^ here\n\nexception type: <class 'ansible.errors.AnsibleUndefinedVariable'>\nexception: deb [arch=amd64] https://download.docker.com/linux/{{ docker_distribution | lower }} {{ docker_distribution_release }} {{ docker_channel }}: {{ ansible_local.core.distribution_release if (ansible_local|d() and ansible_local.core|d() and ansible_local.core.distribution_release|d()) else ansible_distribution_release }}: 'ansible_distribution_release' is undefined"}
as u can see there are a lot of not predefined variables
from ansible-docker.
Yes you r right ( I'll close this issue. Thx for help !
from ansible-docker.
For those with similar situation when you don't want to gather facts at the beginning you can use this task, it will gather facts at that specific point
- name: Gathering facts
setup:
from ansible-docker.
Related Issues (20)
- Support for docker.io package (in addition to ce and ee) HOT 4
- Failed : Install Docker's dependencies HOT 9
- Package dependency error for Docker installation on clean Ubuntu 18.04 HOT 11
- Ubuntu 20.04 ImportError: No module named pkg_resources HOT 10
- Avoid docker login issue with X11 HOT 11
- Expected behavior for DockerHub private repositories login options? HOT 19
- Failed to import the required Python library HOT 10
- Update apt cache before installing packages HOT 1
- Add way to add additional packages to install HOT 3
- Versioning pinning not working HOT 5
- Install Python packages: Could not get output from /usr/local/bin/virtualenv --help HOT 16
- Hi; Please consider suppressing credentials output in: Manage Docker registry login credentials HOT 8
- Upgrade edge case HOT 9
- I'm thinking about no longer setting up a virtualenv, pip installing docker / docker compose and switching the docker_login module to a shell script HOT 2
- docker not installed into /usr/local/bin HOT 4
- Unable to find pip in the virtualenv HOT 8
- Error in new v2.2.0 version when using ansible 2.9.14 HOT 3
- Docker Compose V1 causes the Install Python packages step to crash HOT 3
- Error with pip on basic usage HOT 2
- Task exception at: Install Python packages HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-docker.