anxs / build-essential Goto Github PK
View Code? Open in Web Editor NEWAnsible role for packages required for compiling C software from source.
License: MIT License
Ansible role for packages required for compiling C software from source.
License: MIT License
Hi, when using this role in one of my playbooks, hosts that have OS's not defined in the vars folder fail with the following message:
fatal: [*HOST*]: FAILED! => {"ansible_facts": {}, "changed": false, "failed": true, "message": "Unable to find 'FreeBSD.yml' in expected paths."}
would it be possible to add a check so this doesen't happen?
This is using ansible 2.3.0.0
You may close this ticket
I see you already tried something in commit 9cc8d11 but it doesn't seem to be working.
I'm getting an error using a galaxy role that relies on this, using ansible > 2.0
{
"msg": "One or more items failed",
"failed": true,
"changed": false,
"play": "staging server on AWS",
"task": "ANXS.build-essential : Make sure the packages are installed (Debian)",
"role": "ANXS.build-essential",
"ignore_errors": null,
"status": "failed",
"stdout": "[object Object]\n",
"created": "2016-03-08T16:07:40.803Z",
"host_id": 60,
"host_name": "10.0.10.190",
"id": 47974,
"parent": 47972,
"event": "Host Failed"
}
Hi
You will get yum module not found here:
https://github.com/ANXS/build-essential/blob/master/tasks/main.yml#L15
Try with my docker image from https://hub.docker.com/r/weldpua2008/docker-ansible/tags/:
git clone https://github.com/ANXS/build-essential.git
cd build-essential
OS_TYPE=fedora
OS_VERSION=22
ANSIBLE_VERSION=1.9.2
sudo docker run --rm=true -v `pwd`:/build-essential:rw weldpua2008/docker-ansible:${OS_TYPE}${OS_VERSION}_v${ANSIBLE_VERSION} /bin/bash -c "
echo localhost > /build-essentia/inventory; ansible-playbook -i /build-essentia/inventory /build-essentia/test.yml --connection=local --sudo"
running with ansbile-playbook -vvvv
gives me:
task path: /home/ubuntu/images/provisioning/roles/ANXS.build-essential/tasks/main.yml:3
skipping: [localhost] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
TASK [ANXS.build-essential : Make sure the packages are installed (Debian)] ****
task path: /home/ubuntu/images/provisioning/roles/ANXS.build-essential/tasks/main.yml:6
fatal: [localhost]: FAILED! => {
"failed": true,
"msg": "'buildessential_packages' is undefined"
}
to retry, use: --limit @/home/ubuntu/images/provisioning/rover.retry
PLAY RECAP *********************************************************************
localhost : ok=62 changed=5 unreachable=0 failed=1
root@ip-10-84-182-158:/home/ubuntu/images/provisioning# ansible-playbook --version
ansible-playbook 2.2.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
root@ip-10-84-182-158:/home/ubuntu/images/provisioning# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
root@ip-10-84-182-158:/home/ubuntu/images/provisioning# cat roles/ANXS.build-essential/meta/.galaxy_install_info
{install_date: 'Fri Nov 4 13:58:02 2016', version: v1.0.2}
I am at a loss on why it's skipping the include_vars
task.
I tried using this role in an ansible playbook but was getting a permission denied error. I changed the debian task, adding become:yes to use it as sudo and it works. become, however, is kinda new so adding it here would break the role for playbooks using ansible < 1.9.
Any plans on migrating the support for this for a more recent ansible? What should we do in this case?
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.