Comments (12)
Let me see if Alpine works now. There was some idempotency issue.
# Broken: idempotence, gather_facts: Failed to create temporary directory.
from ansible-role-bootstrap.
I've solved it locally, lets see if CI passes.
from ansible-role-bootstrap.
TASK [bootstrap : wait for host] ***************************************************************************
skipping: [alpine]
TASK [bootstrap : test connection] *************************************************************************
fatal: [alpine]: FAILED! => {"changed": false, "elapsed": 3, "msg": "timed out waiting for ping module test: 'ping'"}
TASK [bootstrap : gather bootstrap facts] ******************************************************************
included: /Users/bas/code/ansible/ansiblebook/ansiblebook/ch18/playbooks/roles/bootstrap/tasks/gather_facts.yml for alpine
TASK [bootstrap : lookup bootstrap facts] ******************************************************************
fatal: [alpine]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: [email protected]: Permission denied (publickey,password,keyboard-interactive).", "unreachable": true}
from ansible-role-bootstrap.
I'd expect:
tasks:
- name: apk update
raw: apk update
- name: install python3
raw: apk add --update python3 py3-pip
from ansible-role-bootstrap.
Try again with version 5.2.7, released a moment ago. CI passes, so "works on my machine". ;-)
from ansible-role-bootstrap.
bootstrap_user: root
I cannot change that to work in all scenarios.
vagrant is a sudo-enabled bootstrap_ansible_user
in my scenario's, package installs can be done as root.
Did you design for sudo snippets?
from ansible-role-bootstrap.
TASK [bootstrap : install bootstrap packages] **********************************
task path: playbooks/roles/bootstrap/tasks/main.yml:60
failed: [rocky] (item=python3) => {"ansible_loop_var": "item", "changed": false, "item": "python3", "msg": "This command has to be run under the root user.", "results": []}
failed: [rocky] (item=sudo) => {"ansible_loop_var": "item", "changed": false, "item": "sudo", "msg": "This command has to be run under the root user.", "results": []}
from ansible-role-bootstrap.
I could install on Alpine, but I made a PR to simplify user setup. I made PR to simplify the become issues.
from ansible-role-bootstrap.
Test case https://github.com/ansiblebook/ansiblebook/tree/3rd-edition/ch18/playbooks
from ansible-role-bootstrap.
Ah, I was thinking what you meant with the test case, I think I understand;
Simpler code works, that's what the test case proves.
But the simpler code is not idempotent. Some tasks are always changed
. CI tests idempotency, I'm very much in favour of simpler code, but I have not found a simpler method for this role...
from ansible-role-bootstrap.
If you have pointers on the configuration that I can use then please share/PR.
from ansible-role-bootstrap.
Fixed with version 6.0.0 release yesterday.
from ansible-role-bootstrap.
Related Issues (20)
- "test if bootstrap_wait_for_host is set correctly" fails HOT 9
- running bootstrap against centos8 fails with "The conditional check 'bootstrap_wait_for_host is boolean' failed" HOT 2
- Error executing on Ubuntu 20.04.1 LTS HOT 7
- OpenSUSE stumbling on python3 HOT 1
- Error on Ubuntu 20.04 - "ERROR! this task 'ansible.builtin.include_tasks' has extra params" HOT 2
- This role is incompatible with ansible 4.0.0 HOT 1
- A system managed by ansible can be Windows or Darwin HOT 1
- Can the bootstrap_user log in without being root? HOT 2
- Impossible to install any package excepting when I am root user. HOT 2
- Boostrap really need to use "root" user could it just user become true and become methode sudo and remote_user that I specified HOT 14
- Unable to bootstrap Ubuntu hirsute HOT 2
- Execution failed: No package matching 'gnupg' is available HOT 2
- At least allow non root bootstrap - root bootstrap default but with override flag HOT 1
- ansible connection local fo Vagrant testing
- install bootstrap packages mkstemp (13: Permission denied) HOT 6
- Alma 8 Failing Bootstrap install bootstrap packages (package)
- Version 5.2.3 is currently unavailable from Ansible Galaxy? HOT 3
- Unable to install latest galaxy version 6.1.2 HOT 3
- README Galaxy role downloads badge fix HOT 1
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-role-bootstrap.