Giter VIP home page Giter VIP logo

Comments (12)

robertdebock avatar robertdebock commented on May 26, 2024 1

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.

robertdebock avatar robertdebock commented on May 26, 2024

I've solved it locally, lets see if CI passes.

from ansible-role-bootstrap.

bbaassssiiee avatar bbaassssiiee commented on May 26, 2024

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.

bbaassssiiee avatar bbaassssiiee commented on May 26, 2024

I'd expect:

  tasks:
    - name: apk update
      raw:  apk update

    - name: install python3
      raw:  apk add --update python3 py3-pip

from ansible-role-bootstrap.

robertdebock avatar robertdebock commented on May 26, 2024

Try again with version 5.2.7, released a moment ago. CI passes, so "works on my machine". ;-)

from ansible-role-bootstrap.

bbaassssiiee avatar bbaassssiiee commented on May 26, 2024

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.

bbaassssiiee avatar bbaassssiiee commented on May 26, 2024

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.

bbaassssiiee avatar bbaassssiiee commented on May 26, 2024

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.

bbaassssiiee avatar bbaassssiiee commented on May 26, 2024

Test case https://github.com/ansiblebook/ansiblebook/tree/3rd-edition/ch18/playbooks

from ansible-role-bootstrap.

robertdebock avatar robertdebock commented on May 26, 2024

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.

bbaassssiiee avatar bbaassssiiee commented on May 26, 2024

If you have pointers on the configuration that I can use then please share/PR.

from ansible-role-bootstrap.

robertdebock avatar robertdebock commented on May 26, 2024

Fixed with version 6.0.0 release yesterday.

from ansible-role-bootstrap.

Related Issues (20)

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.