robertdebock / ansible-role-ara Goto Github PK
View Code? Open in Web Editor NEWInstall and configure ara on your system.
Home Page: https://robertdebock.nl/
License: Apache License 2.0
Install and configure ara on your system.
Home Page: https://robertdebock.nl/
License: Apache License 2.0
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error loading unit file 'ara': System.Error.ENOEXEC \"Exec format error\""}
Debian and Ubuntu
TASK [robertdebock.ara : start and enable ara] *********************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "/etc/init.d/ara: 63: /etc/init.d/ara: Syntax error: Missing '))'\n"}
Debian
The systemd script fails, because ara-manage is in an unxpected location: /usr/local/bin/ara-manage instead of /usr/bin/ara-manage.
vagrant@ara-debian-jessie64:~$ systemctl status ara
โ ara.service - Ansible Runtime Analyser
Loaded: loaded (/etc/systemd/system/ara.service; enabled)
Active: failed (Result: exit-code) since Sun 2018-05-13 08:00:45 UTC; 3min 44s ago
Main PID: 15093 (code=exited, status=203/EXEC)
After installing all the requirements, the ara role fails to install.
$ ansible-playbook -K ara.yml
Please paste the playbook you are using. (Consider requirements.yml
and
optionally the command you've invoked.)
---
- name: Install ara
hosts: all
become: yes
gather_facts: yes
roles:
- role: robertdebock.ara
I tried both of these inventory
:
localhost ansible_connection=local ansible_python_interpreter=/home/blaise/venv/bin/python
and
localhost ansible_connection=local ansible_python_interpreter=/home/blaise/venv/bin/python3
TASK [robertdebock.ara : try python2] **********************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["python", "-m", "ara.setup.callback_plugins"], "delta": "0:00:00.033111", "end": "2022-01-09 23:26:36.202636", "msg": "non-zero return code", "rc": 1, "start": "2022-01-09 23:26:36.169525", "stderr": "/usr/bin/python: Error while finding module specification for 'ara.setup.callback_plugins' (ModuleNotFoundError: No module named 'ara')", "stderr_lines": ["/usr/bin/python: Error while finding module specification for 'ara.setup.callback_plugins' (ModuleNotFoundError: No module named 'ara')"], "stdout": "", "stdout_lines": []}
TASK [robertdebock.ara : try python3] **********************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["python3", "-m", "ara.setup.callback_plugins"], "delta": "0:00:00.030415", "end": "2022-01-09 23:26:36.593164", "msg": "non-zero return code", "rc": 1, "start": "2022-01-09 23:26:36.562749", "stderr": "/usr/bin/python3: Error while finding module specification for 'ara.setup.callback_plugins' (ModuleNotFoundError: No module named 'ara')", "stderr_lines": ["/usr/bin/python3: Error while finding module specification for 'ara.setup.callback_plugins' (ModuleNotFoundError: No module named 'ara')"], "stdout": "", "stdout_lines": []}
cat /etc/os-release
)NAME="Fedora Linux"
VERSION="35 (Server Edition)"
ID=fedora
VERSION_ID=35
VERSION_CODENAME=""
PLATFORM_ID="platform:f35"
PRETTY_NAME="Fedora Linux 35 (Server Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:35"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f35/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=35
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=35
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Server Edition"
VARIANT_ID=server
ansible --version
)ansible [core 2.12.1]
config file = /home/blaise/src/stacks/bootstrap/ansible.cfg
configured module search path = ['/home/blaise/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/blaise/venv/lib64/python3.10/site-packages/ansible
ansible collection location = /home/blaise/.ansible/collections:/usr/share/ansible/collections
executable location = /home/blaise/venv/bin/ansible
python version = 3.10.1 (main, Dec 9 2021, 00:00:00) [GCC 11.2.1 20211203 (Red Hat 11.2.1-7)]
jinja version = 3.0.3
libyaml = False
Managed node OS: [e.g. CentOS 7] (cat /etc/os-release
)
the same machine
Roles
(venv) [blaise@ucs220a bootstrap]$ ansible-galaxy list
# /home/blaise/src/stacks/bootstrap/roles
- robertdebock.bootstrap, 5.2.11
- robertdebock.buildtools, 3.1.6
- robertdebock.epel, 3.1.4
- robertdebock.python_pip, 4.2.7
- robertdebock.ara, 3.1.1
- robertdebock.service, 3.1.2
Please consider sponsoring me.
I'm a sponsor for over a year!
Hi!
I'm the author of ARA -- I just came across this role and I like what I'm seeing. Great work ๐
We're actually in the process of building an awesome and tightly integrated role for ARA and I was curious if you'd be interested in collaborating ?
We're planning to leverage the role as an easy way of deploying ARA but also to integration test ARA itself.
The role can be found here: https://github.com/openstack/ansible-role-ara
Let me know if you'd like to chat !
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.