Comments (4)
I believe, we still have a problem with "updating" using the --force
option.
We have a situation in a cluster auto-update strategy that makes a playbook fail, because an ansible-galaxy install --force
runs at the same time and the playbook doesn't find the related role:
...
The offending line appears to be:
import_role:
name: foo-server-bootstrap
^ here
...
This is due to the fact that --force
replaces (removes and installs) the role no matter whether the latest version of the role is already installed.
Rather than --force
we'd need an --update
option for install
that would verify whether a new version is available for installation before brute-force proceed on doing it.
Has something like that been discussed before? Is that maybe planned already?
from galaxy.
Fixed in by Ansible PR #23391
from galaxy.
Related issues:
- ansible/ansible#6466 (Add an 'update' option)
- ansible/proposals#23 (Role versioning)
from galaxy.
I believe OP's issue been fixed at some point. Would still be nice to have the --update
option.
ansible-galaxy role install -r /root/playbooks/requirements.yaml --force
Starting galaxy collection install process
Process install dependency map
Starting collection install process
'kewlfft.aur:0.10.0' is already installed, skipping.
Starting galaxy role install process
- changing role gantsign.visual-studio-code-extensions from 2.4.0 to unspecified
- downloading role 'visual-studio-code-extensions', owned by gantsign
- downloading role from https://github.com/gantsign/ansible-role-visual-studio-code-extensions/archive/2.4.0.tar.gz
- extracting gantsign.visual-studio-code-extensions to /root/.ansible/roles/gantsign.visual-studio-code-extensions
- gantsign.visual-studio-code-extensions (2.4.0) was installed successfully
- changing role geerlingguy.certbot from 4.1.0 to unspecified
- downloading role 'certbot', owned by geerlingguy
- downloading role from https://github.com/geerlingguy/ansible-role-certbot/archive/5.0.0.tar.gz
- extracting geerlingguy.certbot to /root/.ansible/roles/geerlingguy.certbot
- geerlingguy.certbot (5.0.0) was installed successfully
- changing role geerlingguy.postgresql from 3.1.1 to unspecified
- downloading role 'postgresql', owned by geerlingguy
- downloading role from https://github.com/geerlingguy/ansible-role-postgresql/archive/3.2.1.tar.gz
- extracting geerlingguy.postgresql to /root/.ansible/roles/geerlingguy.postgresql
- geerlingguy.postgresql (3.2.1) was installed successfully
# ansible --version
ansible [core 2.12.1]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.10/site-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/sbin/ansible
python version = 3.10.1 (main, Dec 18 2021, 23:53:45) [GCC 11.1.0]
jinja version = 3.0.3
libyaml = True
from galaxy.
Related Issues (20)
- https://galaxy.ansible.com/api has been flaky most of the day HOT 5
- namespace: sensa HOT 2
- namespace: zynex HOT 1
- namespace: m3i-dev HOT 3
- namespace: Create a namespace for organization revboot HOT 1
- New namespace: OPI HOT 5
- namespace: get_edi_io HOT 1
- Galaxy Platforms API Not Found
- namespace: osahris HOT 4
- namespace: cyblexconsulting HOT 5
- Create namespace shaunsund-ansible and bluepants-dev HOT 12
- namespace: inwx HOT 3
- Ansible Galaxy namespace request HOT 2
- namespace: digitalegesellschaft HOT 2
- namespace: greenitsolutions and opendc HOT 1
- namespace: sennadx HOT 1
- "role install" leads to collection being cloned for scm sourced collections
- namespace: varnish HOT 2
- Cannot import roles from GitHub Organzation with different user than the one in the organization namespace. HOT 6
- namespace: Namespace request for Commvault 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 galaxy.