oefenweb / ansible-composer Goto Github PK
View Code? Open in Web Editor NEWThis project forked from vinelab/ansible-composer
Ansible role to set up composer
License: MIT License
This project forked from vinelab/ansible-composer
Ansible role to set up composer
License: MIT License
Hey,
I've installed your role using ansible-galaxy install tersmitten.composer
.
I was using it with success until now, when I've reinstalled it.
Now when I try to install composer I get:
TASK [tersmitten.composer : create configuration directory] ********************
task path: /etc/ansible/roles/tersmitten.composer/tasks/composer-json.yml:3
fatal: [localhost]: FAILED! => {
"failed": true,
"msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'ansible.vars.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'dest'\n\nThe error appears to have been in '/etc/ansible/roles/tersmitten.composer/tasks/composer-json.yml': line 3, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# tasks file for composer\n- name: create configuration directory\n ^ here\n"
}
I've looked up the /etc/ansible/roles/tersmitten.composer/tasks/composer-json.yml
:
---
# tasks file for composer
- name: create configuration directory
file:
path: "{{ item.dest | dirname }}"
state: directory
with_items: composer_composer_json_map
sudo: yes
sudo_user: "{{ item.owner | default('root') }}"
tags: [configuration, composer, composer-composer-json]
and it's different that what's actually on GitHub:
# tasks file for composer
---
- name: create configuration directory
file:
path: "{{ item.dest | dirname }}"
state: directory
with_items: "{{ composer_composer_json_map }}"
sudo: true
sudo_user: "{{ item.owner | default('root') }}"
tags:
- composer-composer-json-copy
It looks like the problem is that composer_composer_json_map
is not enclosed with double curly brackets.
I am quite new to Ansible and not sure how versioning works between the GitHub and Galaxy.
Can you help me to understand where the problem is?
Thanks
It doesn't matter if you set update
to True
or False
. The "run composer update" is always executed.
For instance:
composer global require --dev 'sebastian/phpcpd=*';
TASK: [composer | update to the latest version] *******************************
<u004017> REMOTE_MODULE command /usr/local/bin/composer self-update
ok: [u004017] => {"changed": false, "cmd": ["/usr/local/bin/composer", "self-update"], "delta": "0:00:00.806601", "end": "2015-05-13 16:23:41.814082", "rc": 0, "start": "2015-05-13 16:23:41.007481", "stderr": "Updating to version bc45d9185513575434021527d7756420e9f4b2cf.\n Downloading: Connecting...\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b Downloading: 100% \b\b\b\b\b\b\b\b\b\nUse composer self-update --rollback to return to version 4d134ce8a2aacb9566fee8deb8c514248fd2a983", "stdout": "", "stdout_lines": []}
It seem that composer writes to stderr
instead of stdout
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.