Thanks for the reply (here and on reddit.) This is totally local for now
while I dev it, so the controller is the target.
I tried the playbook with the default, and with "follow=no" and got the
same behavior.
I'm trying to install a newer ansible; that being said, I'm not finding
which one
I am new to ansible and am adapting some EOL software to work on a
non-target platform. This is a very old application, but I have a business
requirement to get it working on a newer OS. At this point, it requires
Python 2.7, which is likely the source of my headaches, but I'm not sure if
Can someone send me a general pdf of what I should be doing
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to ansible-project+unsubscr...@googlegroups.com.
To
quot;|mongo'"
> register: result
> - debug:
> var: result.stdout
>
> should give valid escaped JSON
>
> result.stdout: 'echo "rs.initiate({\"_id\": \"mongors1conf\",
> \"configsvr\": true, \"members\": [{\
Thank you for your assistance Sir.
On Friday, September 25, 2020 at 12:44:30 AM UTC-5 brae...@gmail.com wrote:
> On 9/25/20 7:01 AM, Joe wrote:
> > I'm pretty new to ansible, so I'm learning as i go. I run the code below
> and it seem to work. However i get the
> > followi
I'm pretty new to ansible, so I'm learning as i go. I run the code below
and it seem to work. However i get the following errors messages? Any one
know why? Any one have suggestions on how i should re-write it properly?
-
---
I am trying to figure out how to put information from a switch config using
ansible so it can be manipulated and used as data in your ansible
playbook. For example, all switches have a configuration section similar
to the following:
archival {
configuration {
the users set up like a host file in
groups or if this is possible. Maybe I'm over thinking this and there's a
simpler way that this has been done.
On Monday, May 11, 2020 at 12:01:36 PM UTC-7, Stefan Hornburg (Racke) wrote:
>
> On 5/11/20 8:53 PM, Joe G wrote:
> > I couldn't remember b
ansible/blob/stable-2.9/lib/ansible/modules/system/authorized_key.py#L400-L407
>
>
>
> On Mon, 11 May 2020 at 19:47, Joe G >
> wrote:
>
>> Awesome, thanks for the assist. I created a new key using RSA and it's
>> working. Does ansible not work with ecdsa? That's
At least you'll know if it's a problem with your key or the playbook (and
> if it works with ssh-copy-id of course you can just delete it off the
> target host when you are ready to retry with your ansible playbook).
> >
> >
> > On Thu, May 7, 2020 at 1:48 PM Joe G >
>
ile', './files/{{ item.username}}_id_rsa.pub')}}"
with_items: "{{ users }}"
Error
failed: [test.preprod.io] (item={u'username': u'joe'}) => {
"changed": false,
"item": {
"username": "joe"
},
"module_stderr
looked at so many I can't recall:
https://medium.com/@khandelwal12nidhi/setup-ssh-key-and-initial-user-using-ansible-playbook-61eabbb0dba4
Playbook
- hosts: test.preprod.io
gather_facts: no
remote_user: ansible
become: yes
tasks:
- name: Create Users
user:
name: joe
shell
I'm fairly new to ansible, so I'm still learning it. Please bare with me.
I have a variable file that defines maps current hostnames of devices to
new hostnames. I'm trying to write a playbook that will re the variable
file and change the hostnames of the devices. So far I haven't had any
I'm new to Ansible, so I'm working my way though learning it. I have a
small very basic playbook with two tasks. The first task uses the junos
module to back the config of a switch. The second tasks changes the host
name of the switch. Ansible reports that only first task was successful.
subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project
t; .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on
Thanks Kai I did not realize that the inventory was actually used to set
random Variables for hosts, if these variables did not have anything to do
with the ssh configuration. Thanks
On Wednesday, August 14, 2019 at 5:12:10 PM UTC-4, Kai Stian Olstad wrote:
>
> On 14.08.2019 22:25, Joe L
I have a role that configures a JSON file on a server. The JSON file needs
know the following variables which are DIFFERENT for each server. This file
is the later used to for a script that installs software
[root@ip-172-29-100-198 roles]# cat elasticconfig/*defaults/*main.yml
---
#
to
happen organically over time.
On Monday, July 29, 2019 at 4:29:22 PM UTC-4, Joe Langdon wrote:
>
> Hello,
>
> I am using an Ansible Role to copy a template file. It is not allowing me
> saying.. "The destination directory (/sys/module/nvme_core/parameters
Hello,
I am using an Ansible Role to copy a template file. It is not allowing me
saying.. "The destination directory (/sys/module/nvme_core/parameters)
is not writable by the current user"
*Here is the execution of the play*
[root@ip-172-29-100-198 roles]# *ansible-playbook -u root
and just specify the path to the script
>
> So here it is
> Shell: /mnt/path/to/your/script
>
> On Mon, Apr 29, 2019, 5:24 PM Andy Magana wrote:
>
> I was wondering if you have put the user in the sudoer file via visudo
> command.
>
> On Apr 29, 2019, at 5:07 PM
nd instead of command
> module use shell and just specify the path to the script
>
> So here it is
> Shell: /mnt/path/to/your/script
>
> On Mon, Apr 29, 2019, 5:24 PM Andy Magana wrote:
>
>> I was wondering if you have put the user in the sudoer file via visudo
>>
"argv": null,
"chdir": "/opt/proctal/scripts/patches/",
"creates": null,
"executable": "/bin/bash",
"removes": null,
"stdin": null,
"warn&qu
_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Joe Langdon
Sometimes when you think life is kicking you in the ass, it's actually just
moving you quickly to a better place.
--
You received this message because you are subscribed to the Google Groups
&qu
I would take a look at Troposphere. It is a Python project that creates
JSON / YAML for Cloudformation scripts. Very similar to what you want to
do. I have not heard of the same project for Ansible
https://github.com/cloudtools/troposphere
On Friday, February 1, 2019 at 5:42:53 AM UTC-5,
My current use case requires me to do that following
Create 50 Linux CentOS 7 boxes.
Eth0 must be 172.30.0 {80-120} on Subnet A
Eth1 must be 172.30.1.{80-120) on Subnet B
Note sure how to do this after reading the documentation,.
I have one Dockerfile
I have tried :
- name: build docker image
command: docker build -t ansibleum /ze/Dockerfile
But the image was not created)
ansible-playbook old_copiash.yml -f 1
PLAY [Transfer and execute a script.]
I'll preface this by saying I'm novice to ansible and certainly not a linux
expert so I might need extra details if you ask me to do anything, so
please be specific with instructions. This has been working flawlessly in
the past. I believe last week apt-get update and upgrade were run on the
I'm new to Ansible, and the consulting Co. I work for is looking into
Ansible Tower. I heard that tower is capable of doing real time
configuration management including file resurrection when changes occur.
Much like how puppet works. Where if someone changes a file that's in the
inventory
hus far to see a working example:
https://github.com/JoeJasinski/ansible-django-stack
Thanks for any advice,
Joe
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an emai
from master 0\r\n"
On Tue, Jun 28, 2016 at 3:17 AM Alexey Vazhnov <alexey.vazh...@gmail.com>
wrote:
> Check «DNS Hostnames=Yes» in your VPC settings (not in Ansible).
>
>
> On Friday, June 24, 2016 at 10:35:19 PM UTC+5, Joe Garcia wrote:
>>
>> Hey All,
>>
address even
though I have set the following in ec2.ini:
destination_variable = public_dns_name
vpc_destination_variable = public_dns_name
Anybody know why?
Below is the full ec2.ini file.
Thanks,
Joe
# Ansible EC2 external inventory script settings
#
[ec2]
# to talk to a private eucalyptus
DING! That worked. Thank you so much!
On Friday, May 20, 2016 at 11:56:12 AM UTC-5, Brian Coca wrote:
>
> you are mixing notations
>
> {{ hostvars['server1']['timestamp']['stdout'] }}
>
>
> --
> Brian Coca
>
--
You received this message because you are subscribed to the Google Groups
When I do this:
{{ hostvars['server1']['timestamp.stdout'] }}
as in:
- name: "Backup {{ proddbname }} Database"
mysql_db: "state=dump name={{ proddbname }} target={{ homedir }}{{
proddbname }}{{ hostvars['server01']['timestamp.stdout'] }}.sql.gz"
It gives me the error
fatal:
So in order to access this var/register from server01, I could do something
like in playbook-01.yml:
---
- hosts: "{{ hostvars['server01']['proddbhost'] }}"
(When I do that I get "ERROR! 'hostvars' is undefined"
On Friday, May 20, 2016 at 8:30:48 AM UTC-5, Brian Coca wrote:
>
> vars don't
---
- hosts: server01
remote_user: jlouthan
vars:
proddbhost: proddb01
tasks:
- name: Get current timestamp
local_action: command bash -c 'date +%Y-%m-%d.%H%M'
register: timestamp
run_once: true
- name: Get current datestamp
indented var: that is a copy/paste mistake.
So those vars and register will not persist to any of the other include
playbooks?
On Friday, May 20, 2016 at 7:49:18 AM UTC-5, Brian Coca wrote:
>
> So vars seems to be incorrectly indented, also you should not need to add
> 'bash' to command
>
>
By all accounts that I can see, the following should work:
---
- hosts: server01
remote_user: jlouthan
vars:
proddbhost: proddb01
tasks:
- name: Get current timestamp
local_action: command bash -c 'date +%Y-%m-%d.%H%M'
register: timestamp
run_once: true
-
So pulling in synchronize between two remote servers works like a champ:
---
- hosts: web14
remote_user: jlouthan
tasks:
- name: Get current timestamp
local_action: command bash -c 'date +%Y-%m-%d.%H%M'
register: timestamp
run_once: true
- name: Get current
That's it! Thank you!
To avoid being "that guy", here is the working playbook:
---
- hosts: dbserver
remote_user: jlouthan
tasks:
- name: Get current timestamp
local_action: command bash -c 'date +%Y-%m-%d.%H%M'
# Consider switch this to a shell module with date command
: ok=5changed=2unreachable=0 failed=1
What am I doing wrong?
On Thursday, April 21, 2016 at 6:46:45 PM UTC-5, Felix Fontein wrote:
>
> Hi Joe,
>
> you could add a task
>
> - name: Get current timestamp
> local_action: command bash -c "date +%Y-%m-%d.%H%
thanks. that helped.
On Friday, April 8, 2016 at 9:40:06 PM UTC+10, Paul Tötterman wrote:
>
> I'm looking for a way to always run a task at the end of script, even if
>> tasks before that were failed. Is there any option such as always_run
>> etc.
>>
>
> Yes:
>
as aforementioned - blocks: always feature in 2.0 seems to suffice my
requirement.
thanks.
On Sunday, April 10, 2016 at 3:52:10 AM UTC+10, Johannes Kastl wrote:
>
> On 08.04.16 06:32 G Joe wrote:
>
> > I'm looking for a way to always run a task at the end of script, even
&
Hi..
I'm looking for a way to always run a task at the end of script, even if
tasks before that were failed. Is there any option such as always_run
etc.
Please advise.
Thanks.
GJ
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To
I am interested in this as well however I am not able to find any info
about Aurora being added to the RDS module. Hoping this will bump up this
topic and someone can answer.
On Friday, January 15, 2016 at 6:40:51 PM UTC-5, vicmo...@gmail.com wrote:
>
> Can I launch a RDS instance with Aurora
] AppDirectory
C:\path\to\appdirectory
Hope this helps.
-Joe
On Thursday, February 11, 2016 at 6:47:42 AM UTC-8, ishan jain wrote:
>
> Hi,
>
> I am trying to create some services on my windows machines with the help
> of NSSM and would like to automate the process with Ansib
Thanks Jon. I'll see what I can do with these options.
-Joe
On Monday, February 8, 2016 at 6:47:32 AM UTC-8, J Hawkesworth wrote:
>
> I've not looked at the code, but perhaps it is a bug. Since you seem to
> be able to reproduce, I suggest raising it in ansible modules extra project
file for all
Windows hosts if they all have the same credentials?
Much appreciated,
-Joe
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to ansib
sure your Linux box where you're running Ansible is registered
on the same domain as the Windows server you are trying to connect to.
Third, your ansible_user domain needs to be in all CAPS like so
user@DOMAIN.LOCAL
Let us know what you come up with.
-Joe
On Wednesday, February 3, 2016 at 7
-14-04lts-to-a-windows-domain-using-pbis-open
-Joe
On Wednesday, February 3, 2016 at 9:16:55 AM UTC-8, Nikhil Shah wrote:
>
> Just an update, but still having issuesI realized I was using ansible
> 1.9.4 and the syntax is a bit different than ansible 2.0 (e.g
> ansible
Ubuntu 14.04, Ansible 2.0.0.2
I'm using win_nssm to install a service. It's successfully installing the
service, however all subsequent runs show the win_nssm task as 'changed'.
Why is win_nssm showing 'changed' even though the service has already been
installed and nothing has been modified?
You were right Jon. I needed to escape the backslashes. This worked:
dest="C:\\temp\\test.conf"
Thanks!
-Joe
On Monday, February 1, 2016 at 3:38:05 PM UTC-8, Joe Levis wrote:
>
> Not sure what I'm doing wrong here. I've tried all different styles of
> configuration w
Not sure what I'm doing wrong here. I've tried all different styles of
configuration with no success. I'm trying to templatize a config file on a
Windows Server 2012 R2, but it's throwing the below error:
*"failed": true, "invocation": {"module_args": {"dest":
"C:\temp\test.conf", "src":
SUCCESS!
Wow, that was it. Thanks man. I had tried {{ redis_password.[app_env] }} -
so close!
And thank you for clarifying the use of jinja.
-Joe
On Thursday, January 28, 2016 at 11:22:38 AM UTC-8, Josh Smift wrote:
>
> JL> 3) Now, I need to use the variable passed on command li
I have a use case where I need to use a variable within a variable. I'm
sure it's doable, but I'm new to Ansible syntax and tried different ways
with no success.
Here's the scenario:
1) Playbook uses variable {{ redis_password.qa }} defined in /vars/main.yml:
---
redis_password:
qa:
Yep, that works!
Thanks Jon. Once again, you've helped me overcome a major hurdle.
-Joe
On Wednesday, January 27, 2016 at 2:59:47 AM UTC-8, J Hawkesworth wrote:
>
> This is likely due to the change to enforce strict mode which was
> introduced in ansible 2.
>
> There i
on postings I found during my Ansible+Windows setup.
Let me know what you find from running other modules.
-Joe
On Saturday, January 23, 2016 at 9:26:03 AM UTC-8, Dan Gibbons wrote:
>
> Hi Joe,
>
> Thanks for getting back to me I did both the items when I setup the
> control ser
Bat%2B2.55.01%2BPM.png>
Thanks,
-Joe
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to ansible-project+unsubscr...@googlegroups.com.
To post to
For now, I'm just running a raw nssm command to set the startup directory
after win_nssm installs it. However, it would be nice if win_nssm provided
the option to do this upon install.
On Monday, January 25, 2016 at 2:56:55 PM UTC-8, Joe Levis wrote:
>
> Does anyone know a way to s
Yes! That module works for me!
I've approved the Pull Request in GitHub as well.
Thanks,
-Joe
On Friday, January 22, 2016 at 11:12:30 AM UTC-8, Joe Levis wrote:
>
> Thanks Jon.
>
> I'll give it a try and post back.
>
> -Joe
>
> On Friday, January 22, 2016 at 10:45:33
Mayur,
Make sure your Linux Control Machine is bound to the same domain as your
target Windows VM. After much reading and debugging, I realized my Ubuntu
server where I was running Ansible was not bound to the Domain.
*Another thing...*
I had to run the kinit command with the below flags on
Thanks Jon.
I'll give it a try and post back.
-Joe
On Friday, January 22, 2016 at 10:45:33 AM UTC-8, J Hawkesworth wrote:
>
> It's here
>
> https://github.com/ansible/ansible-modules-extras/pull/1213
>
> Would be great if you could test it as it would get it one step
I'm running Ansible 2.0.0.2 on a Ubuntu 14.04 Control Machine. I'm using
the script module in my Playbook to run a batch file, which executes a
PowerShell script to create a Windows share (Windows Server 2012 R2). The
Playbook completes successfully:
ok=3changed=1unreachable=0
Hi Dan,
I ran into a lot of issues when trying to get Ansible to connect to my
remote Windows Server 2012 R2 VM. I finally got it working - maybe my
solutions will help you.
*A couple questions:*
1. Did you set up your Ansible Control Machine following the official
documentation to a
Hi Jon,
Thanks for the quick reply.
I'm authenticating to the Windows server using kerberos and the user is an
Administrator on the server.
-Joe
On Friday, January 22, 2016 at 10:40:26 AM UTC-8, J Hawkesworth wrote:
>
> My guess would be you need to run as a privilege
Nervermind. Figured out how to add custom_modules into roles:
http://docs.ansible.com/ansible/playbooks_roles.html
Thanks again.
-Joe
On Friday, January 22, 2016 at 2:44:48 PM UTC-8, Joe Levis wrote:
>
> It looks like the PR for the win_share module is ready to be merged - do
> you
library location:
$ cat /etc/ansible/ansible.cfg | grep library
#library= /usr/share/my_modules/
And /usr/share/my_modules is empty.
On Friday, January 22, 2016 at 12:02:41 PM UTC-8, Joe Levis wrote:
>
> Yes! That module works for me!
>
> I've approved the Pull Reque
*I'm running Ansible 2.0.0.2 on a Ubuntu 14.04 Control Machine, trying to
enable an Inbound port on a target Windows Server 2012 R2 using the
win_firewall_rule.*
*Here's my playbook:*
- name: Allow inbound connection to port 12398
action: win_firewall_rule
args:
name: "Port 12398"
I'm having the same problem.
TASK [iis : Install IIS]
***
/usr/local/lib/python2.7/dist-packages/winrm/transport.py:283:
RuntimeError: kerberos.authGSSClientClean is deprecated.
? Anyways, give that a try. If it works for you as well, you will
need to install each sub feature separately by adding them to the name list
(comma-delimited).
On Thursday, January 21, 2016 at 2:00:36 PM UTC-8, Joe Levis wrote:
>
> I'm having the same problem.
>
> TASK [iis :
Executing a local_action, and i expect it to execute as the user running
the playbook, however it attempts to sudo
- hosts: all
gather_facts: False
become: false
sudo: false
name: Generating bug report
tasks:
- local_action: template src=templates/bug_report.j2
We've recently had to add multiple security groups to an ec2 instance, but
based on the host group, it needs to be a different set of groups.
I see that you can do this by using an array list like so:
- name: launch
local_action:
module: ec2
region: us-west-2
Hey all – suppose I had the following task in a playbook:
- name: Clone aire_core repo
git:
repo: g...@bitbucket.org:joe/my_repo.git
dest: /home/me/my_repo
depth: 1
version: {{ git_branch }}
key_file: ~/.ssh/id_rsa
update: true
I set `git_branch` to master, clone and
I'm very glad that someone else has run into the same issue. That makes me
feel that my use isn't totally off the wall.
This file looks to be the one you'll need but it's pretty empty at the
moment. I don't think that v2 is mature enough at the moment to accept any
changes because most of it
directory is the directory of the current play or
role.
On Mon, Oct 27, 2014 at 6:31 AM, Joe Adams adams...@gmail.com
javascript: wrote:
Is there somewhere that documents what paths are searched when inside a
template or in include calls from within a template? I can't find much
the includes from inside the template engine.
On Tue, Oct 28, 2014 at 8:09 AM, Joe Adams adams...@gmail.com
javascript: wrote:
I've tried that but I can't seem to get it to work. Here are the paths
I've tried so far:
common/templates/iptables.j2
../common/templates/iptables.j2
../../common
, 2014 4:25:33 PM UTC-4, Brian Coca wrote:
It looks for the file in the base directory or in the templates/
subdirectory. The base directory is the directory of the current play or
role.
On Mon, Oct 27, 2014 at 6:31 AM, Joe Adams adams...@gmail.com
javascript: wrote:
Is there somewhere
message for all of them.
On Tuesday, October 28, 2014 10:13:37 AM UTC-4, Brian Coca wrote:
assuming all roles are in the same directory, you could do relative paths
to other roles' template directory.
On Tue, Oct 28, 2014 at 6:34 AM, Joe Adams adams...@gmail.com
javascript: wrote:
So
Is there somewhere that documents what paths are searched when inside a
template or in include calls from within a template? I can't find much
information about this at all.
On Wednesday, October 22, 2014 9:22:05 AM UTC-4, Joe Adams wrote:
I originally though it might be permissions
, John Favorite john.f...@gmail.com
javascript: wrote:
permissions issue?
On Tue, Oct 21, 2014 at 5:35 PM, Joe Adams adams...@gmail.com
javascript: wrote:
I tried asking the IRC channel but I didn't get any responses so I
figure that the mailing list might be better suited to this question
I tried asking the IRC channel but I didn't get any responses so I figure
that the mailing list might be better suited to this question. I'm trying
to build an extensible iptables template. All of my hosts will need some
amount of custom rules to be added so I feel that extending a template
I don't believe logstash forwarder supports conf.d type configuration yet
- https://github.com/elasticsearch/logstash-forwarder/issues/244
I'm curious how others have assembled a config file when a seerver is a
member of multiple groups
thanks,
Joe
--
You received this message because
I found this issue started happening to me after this update of pywinrm:
https://github.com/diyan/pywinrm/tree/7ab74a4b8fbeb2af707c5628703c485f8d14238d
So, I started using an earlier version:
pip install
https://github.com/diyan/pywinrm/archive/df049454a9309280866e0156805ccda12d71c93a.zip
Joe
I'm building a cron server that will basically just serve as a central
server to run cron jobs from. I'm having trouble planning/implementing the
cron functionality in ansible. There will likely be many jobs under many
categories, so I would rather not make a play for each job, especially as
I'm not sure why this option didn't exist to begin with but I certainly use
it all the time.
I have the necessary changes over at https://github.com/codezerk/ansible
One thing to note here is that it will remove the default egress rule if
not defined in the rules list, similar to the ingress
)
thanks!
On Saturday, January 11, 2014 12:34:02 PM UTC-6, Joe Kimmel wrote:
thanks! - i will try that.
however when i run the command manually it doesn't (seem to) need any
input.
however it does do weird things to my terminal (it kinda overwrites its
own previous lines, filling the terminal
I'm running the latest development version of ansible.
I'm getting an error: TypeError: create_volume() takes at most 4 arguments
(6 given) when running the ec2_vol module (see below the full error
message)
My action is defined as:
- local_action:
module: ec2_vol
instance: {{item.id}}
While running the latest development release I'm getting the error:
invalid output was: Traceback (most recent call last):
File /root/.ansible/tmp/ansible-1387976056.03-218115800862115/ec2_vol,
line 1324, in module
main()
File
88 matches
Mail list logo