I'm interested in the best practices for multiple inventories with multiple
'group_vars' also. I've implemented a solution like this and found it
cumbersome to have a default set of group_vars that were shared between the
inventories.
I guess from what I've written, it would make sense to set the
On Tuesday, May 10, 2016 at 10:27:58 PM UTC-7, J Hawkesworth wrote:
>
> I don't know what other people do - I suspect it varies a lot according to
> use and team size - ansible is very flexible after all, but for what its
> worth I moved all my playbooks out of root and into dirs a while ago as
I just noticed that if I only bring the file server VM up and run the
ansible setup command, I get an SSH error saying, "data could not be sent
to the remote host". But if I bring the database VM up, the command
against the file server runs but the ansible_hostname is "db00", not "fs00"
as I
I have an Ansible playbook which, when I run it, executes its tasks against
the wrong Vagrant VM. Here's how I built my VMs:
# ~/playbooks/vagrant/Vagrantfile
Vagrant.configure(2) do |config|
config.ssh.insert_key = false
config.vm.box = "vagrant_base" # Fresh
We wanted a way to combine static and dynamic inventories with a single
set of inventory variables, and wrote a script to do it; check out
https://github.com/caredotcom/ansible-quartermaster and see if it's any
help (either as-is, or as an example, or for humor value, or whatever).
Hi
I was trying to use the EC2 dynamic inventory to manage a number of Windows
and Linux instances and I am struggling trying to find a clean way to do
something like a group_vars file in order to use winrm if the host is
windows and ssh if the host is Linux
Of course, in a static inventory,
I am trying to create new instance with ec2_lc module in ansible. At the
time of bootstraping, I want to install some configurations. Those
configurations come from the public github file, its basically the ansible
playbook. But I need to mention the path for the private key file under
You can use the raw module to run console applications. Things that start
a gui may not start due to the lack of an interactive user.
- name: import a registry file
raw: "reg.exe IMPORT C:\\settings.reg"
(by the way, don't the above, use win_regedit or win_regmerge instead -
just an example
I have given this a quick sanity check and I haven't seen any problems yet,
although haven't yet had chance to test new features so far...
I don't use pip much - do you happen to know if there is an easy way to
back out to existing pywinrm (not tried, but would put it onto shared
server and
Management Node:
CentOs 7.1
Ansible 2.1
Remote Node:
Windows 7
Powershell 3.0
How do I launch an executable on a remote node running Windows 7? As I
understand win_scheduled_task only works with Windows Server 2012 and
win_nssm is only for startup services. Is there any other way do do this?
On 11. mai 2016 11:55, Mark Maas wrote:
I've always been following along with the examples here:
http://docs.ansible.com/ansible/playbooks_conditionals.html#the-when-statement
for instance:
```
- name: Disable requiretty
lineinfile:
dest: /etc/sudoers
regexp: "Defaultsrequiretty"
If someone come up with a solution (like a dynamic inventory script that
reads some inverted inventory dsl), please share, I would be very
interested!
I see the need for such inverted inventory in the case, where I have a lot
of interconnected services, where number of services is really
That looks correct, make sure CONTAINERHOSTNAME is changed to the hostname that
is running your Docker container.
> On May 10, 2016, at 23:04, Dibyendu Paul wrote:
>
> Thanks Jason.
> Just to make sure that I am doing it right.
> Could you please confirm if this is
hello there ,
each time i excecute my playbook i enter passphrase to execute it , and my
playbook contain a task synchronize to synchronize files from the contrle
machine and remote host . but it's ask me again for the ssh passphrase .is
there a method to skip the ssh authentication from
Andreas, when I implemented this, I had to put a line in the section to use
sudo for the installation, which makes sense, just wondering if you had
achieved that another way , just curious.
I initially did these manually for testing, but this is obviously a much
better solution for large scale
Hi
I am trying to run a setup file on linux machine from shell command
and also by creating a custom python module to run the setup file.
When it is run, it is failing with this error:
{"changed": false, "failed": true, "module_stderr": "", "module_stdout":
"", "msg": "MODULE FAILURE",
Hi List,
I've always been following along with the examples here:
http://docs.ansible.com/ansible/playbooks_conditionals.html#the-when-statement
for instance:
```
- name: Disable requiretty
lineinfile:
dest: /etc/sudoers
regexp: "Defaultsrequiretty"
line: "# Defaults
Sorry, the variables "node1","node2", "node3" or "master" were just example
variables, unfortunate names. I just meant some children variables of some
master variable.
W dniu środa, 11 maja 2016 07:44:05 UTC+2 użytkownik J Hawkesworth napisał:
>
> Not sure I fully understand what you are
18 matches
Mail list logo