ansible-galaxy

Is there a way to override a template defined into an ansible galaxy role?

六眼飞鱼酱① 提交于 2021-01-02 07:56:37
问题 I'm trying to set up a server with ansible and I'd like to use this galaxy role. It defines a template that I'd like to customize, but I don't know how. Right now I defined the role into requirements.yml and I installed it using: ansible-galaxy install -r requirements.yml which installed the role somewhere on my system. I tried by recreating the folder tree into my repository where I store my playbooks: roles |- ansible-role-passenger |- templates |- passenger.j2 but it does not work. When I

How to create ansible galaxy roles in windows?

亡梦爱人 提交于 2020-01-26 02:17:24
问题 I am learning ansible from ansible-beginner to pro by micheal heap. It seems that ansible is not supported on windows. The book suggests running ansible from a virtual machine instead. I started a VMbox using vagrant, which has ubuntu/trusty64 on it. I am successfully able to run my playbooks on it. However, I ran into an issue when creating ansible-galaxy roles. I could not find a way to create/ initialize a role on windows. I vaguely borrowed ideas from this question How to automatically

How to use a role from a multi-file playbook

最后都变了- 提交于 2019-12-13 08:56:46
问题 I have a playbook organized as follows (simplified for the sake of this question): ├── deploy.yml ├── hosts ├── requirements.yml ├── roles │ └── web │ ├── meta │ │ └── main.yml │ └── tasks │ └── main.yml └── site.retry My simplified deploy.yml is: --- - name: Everything I need hosts: somewhere roles: - web And my simplified roles/web/tasks/main.yml is --- - name: Various things that work become: yes [whatever] - name: the thing that I have a problem with become: yes davidedelvento.nbextension

How to automatically install Ansible Galaxy roles, using Vagrant?

给你一囗甜甜゛ 提交于 2019-12-12 08:34:27
问题 Using one playbook only, then it's not possible to have Ansible automagically install the dependent roles. At least according to this SO thread. But, I have the added "advantage" of using Vagrant and Vagrant's Ansible local provisioner . Any tricks I may apply? 回答1: Update 2018-11-22! Given the evolution of software, I can not guarantee that all of the "old stuff/answer" below is still legit and won't set your machine on fire lol. I do, however, maintain a Vagrantfile on GitHub that does

Running Oracle SQL scripts with Ansible playbook

对着背影说爱祢 提交于 2019-12-07 06:49:39
问题 A look at the core database modules in Ansible documentation shows no signs of a module for Oracle. What is the best way to handle SQL/PLSQL deployments via Ansible for Oracle databases? Are we expected to use roles from Ansible Galaxy to handle this? Very few people seem to have downloaded roles listed on Galaxy for Oracle. 回答1: I have created a role to install apex 5 (where I first uninstall apex 4). I use modules like 'script' and 'shell'. I am not too happy about environment

Running Oracle SQL scripts with Ansible playbook

泪湿孤枕 提交于 2019-12-05 10:02:00
A look at the core database modules in Ansible documentation shows no signs of a module for Oracle. What is the best way to handle SQL/PLSQL deployments via Ansible for Oracle databases? Are we expected to use roles from Ansible Galaxy to handle this? Very few people seem to have downloaded roles listed on Galaxy for Oracle. I have created a role to install apex 5 (where I first uninstall apex 4). I use modules like 'script' and 'shell'. I am not too happy about environment initialization but I am still learning. For any SQL/PLSQL task, sqlplus is the right tool. (perhaps SQLcl can do better..

How to automatically install Ansible Galaxy roles, using Vagrant?

陌路散爱 提交于 2019-12-04 04:48:07
Using one playbook only, then it's not possible to have Ansible automagically install the dependent roles. At least according to this SO thread . But, I have the added "advantage" of using Vagrant and Vagrant's Ansible local provisioner . Any tricks I may apply? Update 2018-11-22! Given the evolution of software, I can not guarantee that all of the "old stuff/answer" below is still legit and won't set your machine on fire lol. I do, however, maintain a Vagrantfile on GitHub that does install Ansible Galaxy roles automatically and this guy should essentially be regarded as the only one and holy

How to automatically install Ansible Galaxy roles?

元气小坏坏 提交于 2019-11-28 02:48:48
All my Ansible playbooks/roles are checked in to my git repo. However, for Ansible Galaxy roles I always have to explicitly download them one by one on every machine I want to run Ansible from. It's even tough to know in advance exactly which Ansible Galaxy roles are needed until Ansible complains about a missing role at runtime. How is one supposed to manage the Ansible Galaxy role dependencies? I would like to either have them checked into my git repo along with the rest of my ansible code or have them automatically be identified and downloaded when I run Ansible on a new machine. You should

How to automatically install Ansible Galaxy roles?

随声附和 提交于 2019-11-26 23:49:12
问题 All my Ansible playbooks/roles are checked in to my git repo. However, for Ansible Galaxy roles I always have to explicitly download them one by one on every machine I want to run Ansible from. It's even tough to know in advance exactly which Ansible Galaxy roles are needed until Ansible complains about a missing role at runtime. How is one supposed to manage the Ansible Galaxy role dependencies? I would like to either have them checked into my git repo along with the rest of my ansible code