[ansible-project] JOB | Sysadmin (Singapore or London)

2023-06-10 Thread James Tobin
ct is completed (say 12 months). Consequently I had hoped that some members of this group may like to discuss. I can be reached using "JamesBTobin (at) Gmail (dot) Com". Kind regards, James -- You received this message because you are subscribed to the Google Groups "Ansibl

[ansible-project] JOB | Linux Sysadmin (London, UK)

2023-06-02 Thread James Tobin
Kind regards, James -- 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 the w

[ansible-project] JOB | Sysadmin with Python (Singapore/London)

2023-05-23 Thread James Tobin
ached using "JamesBTobin (at) Gmail (dot) Com". Kind regards, James -- 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+unsubsc

[ansible-project] JOB | Linux System Administrator (India, Singapore or UK)

2023-05-16 Thread James Tobin
t may like to discuss further. I can be reached using "JamesBTobin (at) Gmail (dot) Com". Kind regards, James -- 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,

[ansible-project] JOB | Permanent Platform Lead (India)

2023-05-15 Thread James Tobin
using "JamesBTobin (at) Gmail (dot) Com". Kind regards, James -- 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...@

[ansible-project] JOB | DevOps Automation Evangelist/Presenter (London/Singapore)

2023-04-04 Thread James Tobin
will be based in London and/or Singapore. I had hoped that some members of this group may like to discuss further. I can be reached using "JamesBTobin (at) Gmail (dot) Com". Kind regards, James -- You received this message because you are subscribed to the Google Groups "Ansibl

[ansible-project] JOB | On Premises Cloud Engineer (UK)

2023-03-30 Thread James Tobin
esses; moving away from virtual machines. I had hoped that some members of this list may like to discuss further. I can be reached using "JamesBTobin (at) Gmail (dot) Com". Kind regards, James -- You received this message because you are subscribed to the Google Groups "Ansibl

[ansible-project] JOB | Lead Linux Sysadmin (Edinburgh/London)

2023-03-08 Thread James Tobin
om". Kind regards, James -- 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 discussio

[ansible-project] JOB | Champion, Leader, Mentor (United Kingdom)

2023-02-02 Thread James Tobin
scuss further. I can be reached using "JamesBTobin (at) Gmail (dot) Com". Kind regards, James -- 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

[ansible-project] JOB | Head of Platform Engineering (London)

2022-09-16 Thread James Tobin
Gmail (dot) Com". Kind regards, James -- 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 t

[ansible-project] JOB | Head of Platform Engineering (London)

2022-09-16 Thread James Tobin
Gmail (dot) Com". Kind regards, James -- 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 t

[ansible-project] JOB | Production Support (Sydney)

2022-07-04 Thread James Tobin
service impact. Exposure to at least one asset class and the FIX protocol preferred. Consequently, I hoped that some members of this list may like to discuss further. I can be reached using "JamesBTobin (at) Gmail (dot) Com". Kind regards, James -- You received this message b

Re: [ansible-project] Ansible 5.0.0 has been released

2021-12-01 Thread Bond James
Have some problem ansible --version ERROR! Unexpected Exception, this is probably a bug: module 'ansible.constants' has no attribute 'CONTROLLER_PYTHON_WARNING' the full traceback was: Traceback (most recent call last): File "/usr/bin/ansible", line 76, in if C.CONTROLLER_PYTHON_WARNING an

Re: [ansible-project] How to apply/run playbook target at a specific group of machines in the ini-style inventory

2021-10-16 Thread James Ngo
I actually figured it out, should use the -l -i ./inventory/hosts -l Windows Works like a charm! On Saturday, October 16, 2021 at 10:56:29 AM UTC-7 James Ngo wrote: > I have changed to "host: all" per your suggestion, it unfortunately did > not help... > It does not like

Re: [ansible-project] How to apply/run playbook target at a specific group of machines in the ini-style inventory

2021-10-16 Thread James Ngo
pecific group (which I want to) Thank you On Saturday, October 16, 2021 at 10:37:54 AM UTC-7 dick@geant.org wrote: > That "*" is a bit unusual (to me at least). > Try: > > hosts: all > > And then see if the issue is still there > > > On Sat, 16 Oct 2021 a

Re: [ansible-project] How to apply/run playbook target at a specific group of machines in the ini-style inventory

2021-10-16 Thread James Ngo
laybook itself. > What does that look like? > > On Sat, 16 Oct 2021 at 18:26, James Ngo wrote: > >> Hello everyone, >> I am a pretty new face to Ansible. I can follow instruction pretty good >> however, I need your help with the following scenario. >> I created

[ansible-project] How to apply/run playbook target at a specific group of machines in the ini-style inventory

2021-10-16 Thread James Ngo
Hello everyone, I am a pretty new face to Ansible. I can follow instruction pretty good however, I need your help with the following scenario. I created an .INI style inventory file called "hosts", with basically categorize our devices/servers in different groups like below +++ [

[ansible-project] remote1 ->fetch-> control machine ->copy-> remote2

2021-05-25 Thread Bond James
Hello! I have 2 remote hosts and 1 master node with my playbooks. I want that file with name ".env" was copy with module "Fetch" to Master node and then, with module "copy" will copy to Remote host 2 *hosts:* [jitsi] 185.139.68.189 [VideoBridge2] 46.17.104.103 [Jitsi_Stack] 185.139.68.189

Re: [ansible-project] When Or statement

2020-12-01 Thread James Lagermann
Have you tried to put the line in double quotes? I'm not sure if it's always required, however, some of my 'or' statements will not work without them so I just put all of them in double quotes. when: "(item.key is not regex("(Port|Vlan)")) or (item.key not in po_ints)" On Monday, Novem

Re: [ansible-project] Using raw passwords with ansible_password directly in playbooks deprecated?

2020-10-30 Thread James Cassell
cated, but now I can't find where > it says so. Is this method being deprecated, or am i mis-recollecting? > You're doing it properly. There is also ansible_ssh_pass, but that's been emphasized less in favor of the ansible_password transport-agnostic version. V/r,

[ansible-project] Ansible-runner capabilities with ansible-builder containers

2020-09-28 Thread James Allen
-runner is 1.4.6. Is there a projected release date for ansible-runner 2.0? Thanks, James Allen -- 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

Re: [ansible-project] CIS Bencjmarks - Rhel 7

2020-09-10 Thread James Cassell
The galaxy releases are lagging behind, but this probably is what you want: https://github.com/ansible-lockdown/RHEL7-CIS V/r, James Cassell On Thu, Sep 10, 2020, at 4:26 AM, Josephsimon Arokiaraj wrote: > Hi All, > > How you doing? > > Do we have any playbooks/roles for

Re: [ansible-project] Setting Conditionals with Output

2020-08-12 Thread James Hixon
JYL, Appreciate the recommendation. I should have mentioned that the Windows OS is 2008r2. I did try this module before submitting and per the win_share module docs and error message after run, this OS is not supported by the win_share module. James On Wed, Aug 12, 2020 at 12:45 AM Jean-Yves

Re: [ansible-project] sudo(become) difference between "copy" module and "command" module

2020-06-08 Thread James Cassell
> On Mon, 8 Jun, 2020, 10:54 pm James Cassell, > wrote: > > > > On Mon, Jun 8, 2020, at 11:25 AM, Mukuntha rajaa wrote: > > > Hello, > > > > > > "become" works perfectly fine with "command" module. Bu

Re: [ansible-project] sudo(become) difference between "copy" module and "command" module

2020-06-08 Thread James Cassell
* > fatal: [localhost]: FAILED! => {"msg": "an error occurred while trying > to read the file '/etc/ssh/sshd_config': [Errno 13] Permission denied: > b'/etc/ssh/sshd_config'"} > You want `remot

Re: [ansible-project] aws community edition and collection

2020-06-04 Thread James Cassell
u'll further find it difficult to type `ansible -m community.general.my_module ...` using the very long name versus the short name you've always used before. V/r, James Cassell -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

Re: [ansible-project] Setting Variable across multiple hosts blocks

2020-06-01 Thread James Cassell
On Mon, Jun 1, 2020, at 11:49 AM, Brian Coca wrote: > The 'implicit localhost' is not part of ALL: > https://docs.ansible.com/ansible/latest/inventory/implicit_localhost.html > Documentation gold! Thanks! V/r, James Cassell -- You received this message because you ar

Re: [ansible-project] [WARNING]: provided hosts list is empty, only localhost is available

2020-05-24 Thread James Cassell
> On Sun, May 24, 2020 at 4:08 PM James Cassell > wrote: > > > > On Sun, May 24, 2020, at 6:56 PM, Tony Wong wrote: > > > --- > > > - name: get info vm > > > hosts: localhost > > > connection: local > > > gather_facts: fal

Re: [ansible-project] [WARNING]: provided hosts list is empty, only localhost is available

2020-05-24 Thread James Cassell
rk$ > tony@ubuntu:~/ansiblework$ > tony@ubuntu:~/ansiblework$ > tony@ubuntu:~/ansiblework$ ansible-playbook vmware_tools.yml > > > > > > why is it when i run this pb > > I get nothing but this > > [WARNING]: provided hosts list is empty, only localhost is

Re: [ansible-project] Forced --limit

2020-05-06 Thread James Cassell
t; > > I explain, if i don't use --limit, my playbook will deploy on all my > devices. > Me, I want my playbook don't run if --limit is not defined on my run > ansible-playbook command > I use - hosts: "{{ ansible_limit }}" V/r, James Cassell -- You re

Re: [ansible-project] Ansible-playbook

2020-04-18 Thread James Cassell
LED! => {"changed": false, "msg": "This command > has to be run under the root user.", "results": []} > > > Can you please tell me which configs should be made in order to install > services on ansible user? > Pass `-b` to your ansib

Re: [ansible-project] Failed to lock apt for exclusive operation

2020-04-18 Thread George James
inx Exists] fatal: [142.93.15.195]: FAILED! => {"msg": "Missing sudo password"} On Saturday, April 18, 2020 at 5:25:04 PM UTC+4, Stefan Hornburg (Racke) wrote: > > On 4/18/20 3:13 PM, George James wrote: > >

Re: [ansible-project] Failed to lock apt for exclusive operation

2020-04-18 Thread George James
4:42:09 PM UTC+4, Stefan Hornburg (Racke) wrote: > > On 4/18/20 2:05 PM, George James wrote: > > I create a new user using ansible called `nginx`, `nginx` is part of the > sudo group a, but when I try to do an apt > > install with this user I get the below error &g

[ansible-project] Failed to lock apt for exclusive operation

2020-04-18 Thread George James
I create a new user using ansible called `nginx`, `nginx` is part of the sudo group a, but when I try to do an apt install with this user I get the below error ``` : FAILED! => {"changed": false, "msg": "Failed to lock apt for exclusive operation"} ``` What is the cause of the error and how c

[ansible-project] Ansible Permissions issues

2020-04-17 Thread George James
In the below playbook, I specify that ansible should run with the nginx user, but at the end when the task is run and I check in the process, I see that the last process runs with root. Also, when I try to override this by adding become nginx on that last user, the scripts stops working and eve

[ansible-project] Ansible running script with wrong user

2020-04-17 Thread George James
I have the below task in ansible, but when I take a look at the process using `ps aux | grep nginx`, I see that the process is being run by the root user instead of the nginx user is there a way I can fix this. - name: Install Nginx Ubuntu hosts: all remote_user: "{{ NGINX_USER }}" become: yes

[ansible-project] Re: Need Assistance With Ansible Error

2020-04-14 Thread George James
Thanks Orkhan, but the same issue On Wednesday, April 15, 2020 at 8:54:51 AM UTC+4, Orkhan Mammadov wrote: > > Run the file from the directory, where your config file is located. > > On Wednesday, April 15, 2020 at 7:46:36 AM UTC+4, George James wrote: >> >> I am new to

[ansible-project] Need Assistance With Ansible Error

2020-04-14 Thread George James
I am new to ansible. I create an inventory file [web] 167.172.xxx.xxx ansible_connection=ssh ansible_user=root ansible_ssh_private_key_file=~/.ssh/id_rsa.pub Then I run ansible web -m ping -i hosts - But I am presented with the following log and error ansible 2.9.6 config file = No

Re: [ansible-project] OS support contribution guidelines

2020-03-17 Thread James Cassell
IIUC, it's no longer possible to add non-namespaced modules or plugins, and best you can do is community.general.my_module.) V/r, James Cassell [1] https://meetbot.fedoraproject.org/ansible-meeting/2020-03-17/ansible_core_public_irc_meeting_https:github.comansiblecommunityissues528.2020

Re: [ansible-project] rescue block does not print message despite being invoked

2020-03-12 Thread James Cassell
nd_result > failed_when: command_result.rc == 0 and action == "onboard" > > > rescue: > - name: Print custom conditional debug message > fail: > msg: >- > {{ > command_result.rc == 0 | You're missing parenthesis around the condition. V/r, J

Re: [ansible-project] Every SSH connection logs mux_client_read_packet: read header failed: Broken pipe

2020-03-03 Thread James Cassell
gt; if connections are terminating like this? > > > > Full debug output here: > https://gist.github.com/johnbateman/c2257c750798d1f48adc95deb66e3b61#file-gistfile1-txt > > Maybe try just 3 v's... I got lost in the output. V/r James Cassell > > ` > `an

Re: [ansible-project] Ansible delegate to another host

2020-02-21 Thread James Cassell
quot; with prod server ip (identified as part of step 2), it > fails. > Make sure the host is in your inventory, or try add_host to get it there. V/r, James Cassell -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscri

Re: [ansible-project] nmcli module seems broken. Documention mentions old libraries for CentOS8/RHEL8

2020-02-09 Thread James Cassell
les. The core team has no interest in taking on more modules. Even the very useful ini_file module is community and preview. For the topic at hand, check out the linux-system-roles project, which is shipped and supported in RHEL as rhel-system-roles. [1] V/r, James Cassell [1] https://github.com

Re: [ansible-project] Switch to root user using dzdo

2020-02-07 Thread James Cassell
quot;dzdo su -", then you should talk to your security folks to get a saner policy. (There's likely hacks that can be done, but "hacks") V/r, James Cassell -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To uns

Re: [ansible-project] start servers using ansible playbook

2020-02-03 Thread James Cassell
On Tue, Feb 4, 2020, at 12:03 AM, James Cassell wrote: > On Mon, Feb 3, 2020, at 8:56 PM, Cloud09 wrote: > > Hello Team, > > > > I am writing a playbook to start weblogic servers, could anyone help me > > any syntax errors, I could not make item/item display as it sho

Re: [ansible-project] start servers using ansible playbook

2020-02-03 Thread James Cassell
filepath > - stopservers Instead of loop, I'd recommend with_together. - name: Start the managed server(s) command: "{{item.0}}/{{item.1}}" with_together: - "{{filepath}}" - "{{stopservers}}" V/r, James Cassell -- You received this message bec

Re: [ansible-project] Need Help in Ansible regex

2020-01-24 Thread James Cassell
comparing two static strings here that will never match. You probably meant to do something like when: item is regex('your regex') See for examples: https://docs.ansible.com/ansible/latest/user_guide/playbooks_tests.html#testing-strings V/r, James Cassell > with_items: "{

[ansible-project] Re: turn on boto debugging in Ansible (~/.boto)

2020-01-23 Thread james dupont
Hi all, using strace on the ansiballz strace -o st -s -e openat,open,readlink,stat,lstat -f python3.7 /home/mdupont/.ansible/tmp/ansible-tmp-1579783694.3938165-128929969192073/AnsiballZ_sqs_queue.py Shows 7150 openat(AT_FDCWD, "/etc/boto.cfg", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such fi

Re: [ansible-project] debug msg ignore other results.

2020-01-14 Thread James Cassell
d': False, 'ansible_facts': > {u'discovered_interpreter_python': u'/usr/bin/python'}}) > > ok: [localhost] => (item={'failed': False, 'ansible_loop_var': u'item', > u'volume_attachments': [], 'item&

Re: [ansible-project] specifying both inventory-file & group from that file

2020-01-13 Thread James Cassell
. I often use `hosts: "{{ ansible_limit }}"` So the playbook runs against the hosts passed to the -l cli option. I've also seen folks swap ansible_limit for target, then force playbook operators to specify -e target=mygroup V/r, James Cassell -- You received this message beca

Re: [ansible-project] Issue with redhat_subscription module

2020-01-13 Thread James Cassell
'--quantity', quantity] rc, stderr, stdout = > self.module.run_command(args, check_rc=True) else: > self.module.fail_json(msg='Pool ID: %s not in list of available pools' > % pool_id) return pool_ids > ` > > I was wondering if it should be patched to de

Re: [ansible-project] Zeros are truncated from strings. #10281

2019-12-13 Thread James Cassell
dversion: 19.10 > ` You need to make it a string by quoting it; otherwise it's treated as a floating point number. This is yaml behavior. V/r, James Cassell > > However the resulting filename for the above once rendered is "19.1" > Ill confess to not know how to

[ansible-project] ERROR! the role 'network_facts' was not found

2019-12-05 Thread James Lawrence
ansible version root@DESKTOP-NI19EMN:/etc/ansible# ansible --version ansible 2.9.1 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-pac

[ansible-project] AWX Tower install failure (2 separate servers)

2019-11-21 Thread John James
Good Morning, I am pretty new to Ansible, I had built an AWX Tower some months ago, but had to let it sit. Last week I started working on it again when that instance got stuck in an upgrade loop. I spent a few days trying to reinstall and in the end, I couldn't get passed a specific error.

Re: [ansible-project] Precendence: why playbook level variables win over inventory ones?

2019-10-18 Thread James Cassell
instead forgo separating inventory from playbook group_vars. I, too, would be interested in an explanation of why the order is what it is. I've been bitten by it in the past. V/r, James Cassell -- You received this message because you are subscribed to the Google Groups "Ansible

Re: [ansible-project] ansible - shell module using expect

2019-10-08 Thread James Cassell
On Tue, Oct 8, 2019, at 8:58 AM, Troy Cosson wrote: [re-ordered] > > > On Monday, October 7, 2019 at 4:12:36 PM UTC-5, James Cassell wrote:On > Mon, Oct 7, 2019, at 4:19 PM, Troy Cosson wrote: > > > I'm trying to get a Red Hat server (RHEL7) to join a Windows Active

Re: [ansible-project] ansible - shell module using expect

2019-10-07 Thread James Cassell
xpect > delegate_to: localhost > > Try \n instead of \r. This is more a question about expect than ansible. You'll also have to worry about special chars in the password, as parsed by TCL. (Obviously you need the expect command available on the target system.) A better approach mig

Re: [ansible-project] unable to Delete post in GitHub ansible community

2019-09-28 Thread James Cassell
quot; folks to trawl the internet for "internal" information, and then take action against the person who "leaked" it. Been there, experienced that.) Hopefully the auto locking can be reconsidered. V/r, James Cassell -- You received this message because you are subscribed to th

Re: [ansible-project] Connection via Citrix

2019-09-24 Thread James Cassell
sign, though I would be interested if you found a way to do it. V/r, James Cassell -- 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+unsu

Re: [ansible-project] More dynamic variables

2019-08-21 Thread James Cassell
oncatenating variables together, including trying the 'vars' lookup > plugin, but I have not been able to work this out after two days of > trying. So, here I am, back at the well, looking for another answer. > Does anyone have any advice? > > V/r, James Cassell -- Y

Re: [ansible-project] Ansible Authentication or permission failure

2019-07-29 Thread Richard James Salts
On Tuesday, 30 July 2019 7:19:22 AM AEST kamran taherpour wrote: > Hi, > I'm receiving following error for Ansible ping command > > <10.26.64.67> Failed to connect to the host via ssh: OpenSSH_7.4p1, OpenSSL > 1.0.2k-fips 26 Jan 2017 > > debug1: Reading configuration data /etc/ssh/ssh_config > >

Re: [ansible-project] ansible_facts['ansible_os_family'] vs. ansible_facts['os_family']

2019-07-28 Thread James Cassell
aw in output key > "*ansible_os_family*", not "*os_family*"? Should I delete all leading > "ansible_" from output setup module? Is it documented? > There is an effort to move gathered facts into their own namespace under ansible_facts, dropping the ansib

Re: [ansible-project] Yet another dynamic variable problem

2019-07-23 Thread James Cassell
facts.distribution_major_release}}" > > So what is the difference? Why does it work as expected in the debug > task but not in the shell task? > You're doing a double lookup here. Once in with_items and again by using `var` instead of `msg` V/r, James Cassell -- You

[ansible-project] cert_file error with aws_ec2 inventory plugin

2019-07-08 Thread James Wallace
Hey all, I'm having an issue using the aws_ec2 inventory plugin and I can't seem to find a solution. ansible 2.8.1 config file = /home/jwallace/nxt-devops/ansible/ansible.cfg configured module search path = [u'/home/jwallace/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']

Re: [ansible-project] ansible playbook in json format not working

2019-06-26 Thread James Cassell
> >> The error appears to have been in '/home/pidansible/test_playbook.json': > >> line 4, column 5, but maybe elsewhere in the file depending on the exact > >> syntax problem. > >> The offending line appears to be: > > > What am I doing wron

Re: [ansible-project] Enable copr repository with dnf module

2019-05-28 Thread James Cassell
nf_copr module to accomplish that goal, or an extra feature to yum_repository module, however. > Marcin > V/r, James Cassell -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiv

[ansible-project] Vormetric driver install

2019-05-22 Thread James
I have been unsuccessful at installing a Vormetric driver onto CentOS. I am using the 'expect' module and have tried various question:answer pairs, but nothing completes successfully. Due to the isolated environment I work in, I am unable to copy the playbook I'm using, but I do have the dri

Re: [ansible-project] How do command scp -rp in Ansible ?

2019-05-22 Thread James Cassell
task for copy" > copy: > src: /somerepertory/myrepertory1/ > dest: /somerepertory/myrepertory1/ > Use synchronize. There's no support for recursive copy in the copy module. V/r, James Cassell > > But this module do scp -rp or not ? > > Thanks for your a

[ansible-project] Generating a single line comma separated string variable from host group

2019-05-16 Thread James Armstrong
Hey, I've been pulling my hair out over what seems like a relatively simple task for hours now. I've working on playbook for an Elasticsearch deployment. One requirement for this is a config file item that is effectively just a comma separated list of hostnames or IP's of nodes. e.g. disco

Re: [ansible-project] Change current directory

2019-05-14 Thread James Cassell
? Maybe try `args: chdir=/mydir` V/r, James Cassell > would you please let me know how can i do change the current directory in > the remote host? > > Kevin > > > > =

Re: [ansible-project] Re: Rollback in Ansible ?

2019-05-14 Thread James Cassell
ou should have the rescue block do what is necessary to recover from your SQL script, or use something like a SQL transaction, but, again, it's beyond the scope of ansible. V/r, James Cassell > So what to put in the rescue section? > > Thanks for your help ! :) > > Regards,

Re: [ansible-project] Rollback in Ansible ?

2019-05-14 Thread James Cassell
; .. > > i want that if one task fails, I want him to go back on all the tasks that > play it. > You can write rollback tasks in a `rescue` section, followed by a fail task, but there is no automatic rollback functionality unless you write it yourself. V/r, James Cassell

Re: [ansible-project] multiline jinja2 lists returned as string?

2019-05-08 Thread James Cassell
;RedHat' %}\ > {{ cusers.append('redhat_user') }}\ > {% else %}\ > {{ cusers.append('other_user') }}\ > {% endif %}\ > {{ cusers }}" Another way: users2: "{{ ['user1', &#

Re: [ansible-project] Ansible Replacing the existing Jar files with new Jar files with same file name is not performing any action

2019-05-01 Thread James Cassell
Please stop the spam. Your message came thru the first time. Also, please don't spam individual members of the list with the same question you sent to the list. Thanks. R, James Cassell On Wed, May 1, 2019, at 9:33 PM, chandrasekhar Mallishetty wrote: > > > On Thursday, Ma

[ansible-project] Re: How to truncate oracle table with ansible code

2019-05-01 Thread James Cassell
This is a better question for the ansible-project list. V/r, James Cassell On Wed, May 1, 2019, at 4:45 PM, chandrasekhar Mallishetty wrote: > is there any example working code that how to truncate oracle database > table with the ansible code in jinga2 template -- You received this m

Re: [ansible-project] how do I properly set ANSIBLE_BECOME_PASS ?

2019-05-01 Thread James Cassell
an make your own, though: export ANSIBLE_BECOME_PASSWORD=mypassword then in your ansible variables, set: ansible_become_password: "{{ lookup('env', 'ANSIBLE_BECOME_PASSWORD') }}" V/r, James Cassell > On Wed, May 1, 2019 at 3:06 PM James Cassell > wrote: >

Re: [ansible-project] how do I properly set ANSIBLE_BECOME_PASS ?

2019-05-01 Thread James Cassell
On Wed, May 1, 2019, at 2:55 PM, Guy Matz wrote: > Hello! Sorry to be so lame. What combination of environment vars do I > need to set in order to not get prompted for a SUDO password?! > > I've tried setting ANSIBLE_BECOME_PASS and ANSIBLE_ASK_BECOME_PASS=False > but I still get prompted . .. >

Re: [ansible-project] [Ansible-project]

2019-04-18 Thread James Cassell
On Thu, Apr 18, 2019, at 9:50 AM, vikram acharya wrote: > Hello Jonathan > > Thanks for support can you help with more detail If possible.. am kind of > new ansible world .. is their any mistake in play book ? > > You need 'gather_facts: yes' V/r, James Cass

Re: [ansible-project] var for --ask-pass ?

2019-04-04 Thread James Cassell
On Thu, Apr 4, 2019, at 2:18 AM, sergey.mihai...@gmail.com wrote: > I start playbook : ansible-playbook win_install_ascon.yml --ask-pass > > define in playbook: > ... > ansible_become_pass: "{{ remote_pass }}" ansible_become_password: "{{ ansible_pas

Re: [ansible-project] loop with dynamic item.x

2019-04-01 Thread James Cassell
t; > loop: "{{ nginx }}" > > > This is working well. > > But I need to have the choice of the environment. > > I tried this: > > - debug: > msg: "{{ lookup('vars', 'item.' + environnement }} " msg: "

Re: [ansible-project] Re: List of invalid character(s)

2019-03-29 Thread James Cassell
roups with those types of characters so you can always do groups.group_name. Just don't call your group "get", "copy", "keys", "items", or a host of other special values... Using "---" as an inventory_hostname is fine, though. V/r, James Ca

[ansible-project] conditional variables depending on time

2019-03-28 Thread James Gibson
I am trying to output what shift an event has happened depending on the time of day, but keep running into errors or getting nothing back. --- - hosts: localhost vars: shift: "{{ 'First Shift' if ansible_date_time.time > '09:00:00' && ansible_date_time.time < '17:00:01' else '' }}"

Re: [ansible-project] yum module gives "AttributeError: 'list' object has no attribute 'strip'" on list of items

2019-03-28 Thread James Cassell
omatically install all the packages at once, so there's no warning that ansible will stop doing so in a future release. In any case your playbook will continue to have the same end result as it does today, with our without changes to squash this warning. V/r, James Cassell > task despite t

Re: [ansible-project] Re: Ansible - Register variable in not defined

2019-03-22 Thread James Gibson
Yes that worked, but for the client I am working with, I am unable to change the validation. How would I define it so that test_out.test would work? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop rec

[ansible-project] Re: Ansible - Register variable in not defined

2019-03-22 Thread James Gibson
Thanks Syed. I added a validation step and that is failing. Updated playbook --- --- 2 - name: Test playbook 3 hosts: localhost 4 connection: local 5 vars: 6 test: hello 7 8 tasks: 9 - name: test var 10debug: 11

[ansible-project] Ansible - Register variable in not defined

2019-03-22 Thread James Gibson
I am trying to figure out why my variable is not defined and have not been able to find any solutions online. Can anyone help? test.yml --- - name: Test playbook hosts: localhost connection: local vars: test: hello tasks: - name: test var debug: msg: "{{ te

Re: [ansible-project] Do the target systems need to have pre-requisites installed for Ansible to work?

2019-03-20 Thread James Cassell
uirements are needed on the host that executes this module.” > boto > boto3 > botocore > python >= 2.6 > > > What is “the host that executes this module”? Is this the control host > where you installed Ansible or the remote host that you want to change with > the

Re: [ansible-project] how to prevent Ansible to change ansible_python_interpreter after execution

2019-03-18 Thread James Cassell
sed to invoke the Ansible command line tool https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html V/r, James Cassell > ```yaml > [default] > localhost ansible_python_interpreter=/Users/cduong/.pyenv/shims/python > ``` > > However, after the execution, A

Re: [ansible-project] Skip import playbook using when condition.

2019-02-27 Thread James Cassell
e import are applied to each task imported. V/r, James Cassell > - name: > hosts: rchadm01 > vars_files: > - var.yml > tasks: > - name: > add_host: > name: "{{ decom_host }}" > groups: decom_host_group > > - import_pla

Re: [ansible-project] with blockinfile module, I'm looking for option to check the entries whether its present or not! if not then entries have to be added by play.

2019-02-25 Thread James Cassell
s is that it is finding the empty string marker at BOF and finding nothing between the zero length marker and itself, this adding the block unconditionally. You will have more luck with a non empty marker. V/r, James Cassell > > > *Playbook:-* > cat resolv_add.yml > --- > - host

Re: [ansible-project] Re: blockinfile state:absent is not working, I'm trying to remove mulitple lines but not working

2019-02-15 Thread James Cassell
On Fri, Feb 15, 2019, at 8:35 AM, Deepan M wrote: > > Hi James, > > Still same problem! Can you please see below entries and correct me if > anything wrong in that? > > --- > - hosts: xerox > become: yes > tasks: > - name: removelines >

Re: [ansible-project] blockinfile state:absent is not working, I'm trying to remove mulitple lines but not working

2019-02-15 Thread James Cassell
On Fri, Feb 15, 2019, at 7:45 AM, James Cassell wrote: > > > On Fri, Feb 15, 2019, at 7:25 AM, Deepan M wrote: > > > > please someone help me to get answer for my query! > > > > --- > > - hosts: testuser > > become: yes > > t

Re: [ansible-project] blockinfile state:absent is not working, I'm trying to remove mulitple lines but not working

2019-02-15 Thread James Cassell
You'll need to move your markers from block to marker_begin and marker_end V/r, James Cassell > > ansible-playbook sudolineinfile.yml > SUDO password: > > PLAY [xerox] > ***

Re: [ansible-project] ASG Volume tags

2019-02-15 Thread James Morgan
that locates untagged volumes, loads > up the instance details and then tags the volumes with e.g. one or more of > the instance tags. That may or may not be some thing you could do with > Ansible. > > Regards, K. > > > On Thu, Feb 14, 2019 at 2:37 AM James Morgan > wro

[ansible-project] ASG Volume tags

2019-02-13 Thread James Morgan
Hi, Does anybody know how to get tags applied to volumes associated with instances created as part of an ASG? Instances tags are propagated fine, just no way to tag the volumes that I can see Many thanks James -- You received this message because you are subscribed to the Google Groups

Re: [ansible-project] Version Control playbooks and tasks

2019-02-12 Thread James Cassell
e with > using version control to manage all their playbooks? > I'd hope everyone does. Git is the de facto standard, so go with that unless you have a good reason to use something else. V/r, James Cassell -- You received this message because you are subscribed to the Google Group

Re: [ansible-project] set_fact with_items inside var

2019-02-03 Thread James Cassell
item.hostip, 'type': 'V4'}}] }}" > with_items: "{{pool_server_ips}}" > > If I debug the list i get: > > "servers": [ > "[] + [{'ip': {'addr': [item.hostip]", >

[ansible-project] Re: exclude_path not working on archive module

2019-01-21 Thread James LeBlanc
anuary 21, 2019 at 11:37:19 AM UTC-5, JS wrote: > > Hi James > > Apologies, I thought I'd already replied to your message! > > I've tried the latest version of ansible - still haven't had much luck > with the archive module and exclude_path. > > I'v

Re: [ansible-project] Re: Unable to parse /etc/ansible/hosts as an inventory source

2019-01-20 Thread James Cassell
eate it first > > e.g. > > sudo mkdir /etc/ansible/ > > sudo touch /etc/ansible/hosts > > sudo chmod 777 /etc/ansible/hosts Pretty sure that making the inventory executable will cause ansible to try to run it as a script then use the output as inventory. V/r, James Cassell

Re: [ansible-project] Beginner, can't complete this step

2019-01-14 Thread James Cassell
inda", > "msg": "[Errno 13] Permission denied", > "rc": 13 > > > I'm trying to add an user on 4 machines. > -created project directory > -created ansible.cfg file with this content: > [defaults] > remote_user = ansible >

  1   2   3   4   5   6   7   8   9   10   >