Giter Site home page Giter Site logo

oefenweb / ansible-composer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vinelab/ansible-composer

5.0 5.0 1.0 116 KB

Ansible role to set up composer

License: MIT License

Dockerfile 100.00%
ansible composer debian package-manager php ubuntu

ansible-composer's People

Contributors

mulkave avatar tersmitten avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nlware

ansible-composer's Issues

Problem with composer installation: `composer_composer_json_map` - the field 'args' has an invalid value

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

composer self-update is always unchange

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.