Re: [ansible-project] How to simulate user first login.

2014-11-17 Thread Andrew Latham
For directory (LDAP, etc..) based authentication you can create the home directory and copy the skel over to it. Validating permissions of course. On Mon, Nov 17, 2014 at 7:26 AM, Greg Andrews hvar...@gmail.com wrote: What about creating the user's home directory when you create the user's

Re: [ansible-project] How to copy very long(5000+ lines) out-put of commands to files

2017-02-09 Thread Andrew Latham
Redirect is part of Cisco IOS not Ansible. Example show ip bgp vpnv4 all | redirect flash0:/vpnv4.txt On Tue, Feb 7, 2017 at 8:55 AM, Satish.. wrote: > > Hello Team, > > I am using ios_command module in a playbook. With this module we executes different commands

Re: [ansible-project] Authorized_Key module not compatible with Python3?

2017-03-26 Thread Andrew Latham
Interesting, this or the ansible-dev list are both good places to bring this up. Can you share the exact version you are using and maybe some system package versions? On Sun, Mar 26, 2017 at 3:15 PM, Brian Huddleston wrote: > > I use the "authorized_key" module

Re: [ansible-project] Scaling Ansible

2017-04-19 Thread Andrew Latham
ute across tens of > thousands of hosts. Plus, if the batch is too large it would overwhelm the > control node. Would be nice to see how others are solving this problem. > > > On Wednesday, April 19, 2017 at 6:25:54 AM UTC-7, Andrew Latham wrote: >> >> On Tue, Apr 18, 2017 at 8:

Re: [ansible-project] Scaling Ansible

2017-04-19 Thread Andrew Latham
On Tue, Apr 18, 2017 at 8:21 PM, Fong Yang wrote: > > We're evaluating Ansible and other config management tools. I have two issues I would like input from others: > > 1) if you have to change ssh keys, what's the best way to do that across tens of thousands of machines? > >

Re: [ansible-project] syntax error... where there is no syntax error...

2017-03-14 Thread Andrew Latham
Joost Try: python -c 'import yaml,sys;yaml.safe_load(sys.stdin)' < ansible/playbooks/apt/sssdconfig.yml Valid Yaml is not hard but you can add a post commit hook like the above to validate the yaml for you. On Tue, Mar 14, 2017 at 10:35 AM, Joost Ringoot wrote: > > But

Re: [ansible-project] Total Ansible n00b needing guidance on translating bash command to Ansible playlist

2017-08-15 Thread Andrew Latham
A method would be to get the return value from http://docs.ansible.com/ansible/latest/find_module.html and then set the file state to absent. On Tue, Aug 15, 2017 at 10:13 AM, EspressoBeanies wrote: > Hi, > > I'm trying to run the following nested bash command: rm

Re: [ansible-project] Total Ansible n00b needing guidance on translating bash command to Ansible playlist

2017-08-15 Thread Andrew Latham
e: >> >> Whoops, posted too soon. >> >> On Tuesday, August 15, 2017 at 11:55:04 AM UTC-4, EspressoBeanies wrote: >>> >>> Hi Andrew, >>> >>> Thanks for the reply. I'm unfamiliar with how to reference the return >>> value syntax. Woul

Re: [ansible-project] Ansible tower inventories and variables

2017-08-16 Thread Andrew Latham
For tower questions and support please utilize https://access.redhat. com/products/ansible-tower-red-hat This mailing list is for the open source Ansible project. On Wed, Aug 16, 2017 at 10:03 AM, Asil Carlin wrote: > We've implemented the directory structure for multi-stage

Re: [ansible-project] Getting "502 Bad Gateway" after Ansible Tower 3.1.4 Install

2017-08-14 Thread Andrew Latham
For tower questions and support please utilize https://access.redhat. com/products/ansible-tower-red-hat This mailing list is for the open source Ansible project. On Mon, Aug 14, 2017 at 2:12 PM, Joel Chaney wrote: > Ansible Tower installed on CentOs 7 minimal

Re: [ansible-project] Ansible Tower installation Failed with error

2017-07-14 Thread Andrew Latham
For tower questions and support please utilize https://access.redhat. com/products/ansible-tower-red-hat This mailing list is for the open source ansible project. On Tue, Feb 7, 2017 at 4:31 PM, wrote: > I am totally new to this ansible project. I tried the ansible

Re: [ansible-project] Looking for Ansible tower REST specifications (xml files)

2017-07-17 Thread Andrew Latham
For tower questions and support please utilize https://access.redhat. com/products/ansible-tower-red-hat This mailing list is for the open source ansible project. On Mon, Jul 17, 2017 at 7:59 AM, frank vene wrote: > Hello everyone, > > In the context of our project, we

Re: [ansible-project] Ansible support

2017-07-19 Thread Andrew Latham
Commercial support exists https://www.ansible.com/consulting the core software is all Open Source and the Tower ( https://www.ansible.com/tower ) is a commercial product. Try https://www.ansible.com/ for more info. On Wed, Jul 19, 2017 at 10:45 AM, Mehul Prajapati wrote: >

Re: [ansible-project] Re: Ansible support

2017-07-19 Thread Andrew Latham
Mehul Please find in the documentation at https://docs.ansible.com/ansible/intro_installation.html#installing-the-control-machine the instructions for installing and updating from the various release repositories. On Wed, Jul 19, 2017 at 10:57 AM, Mehul Prajapati wrote: > How

Re: [ansible-project] Ansible 2.3.2 RC3 is available for testing

2017-07-20 Thread Andrew Latham
Confirmed http://releases.ansible.com/ansible/ansible-2.3.2.0-0.2.rc2.tar.gz is the latest there. Use https://github.com/ansible/ansible/archive/v2.3.2.0-0.3.rc3.tar.gz in the interm. On Thu, Jul 20, 2017 at 10:51 AM, Michael Ströder wrote: > James Cammarata wrote: > > Hi

Re: [ansible-project] Ansible Tower Api extra_vars containing url address

2017-07-20 Thread Andrew Latham
For tower questions and support please utilize https://access.redhat. com/products/ansible-tower-red-hat This mailing list is for the open source ansible project. On Thu, Jul 20, 2017 at 9:48 AM, wrote: > I'm using Ansible Towers' API to run some templates and I need

Re: [ansible-project] Questions on Ansible, Chef and Rundeck

2017-07-19 Thread Andrew Latham
Please explain: """Are there any ways to overcome the security aspects for Ansible without Ansible Tower?""" as I am really interested in what you mean here. On Wed, Jul 19, 2017 at 7:13 AM, Weishan Ang wrote: > > Hi all, > > We looking to implement rolling

Re: [ansible-project] Ansible Tower installation error

2017-06-28 Thread Andrew Latham
For tower questions and support please utilize https://access.redhat. com/products/ansible-tower-red-hat This mailing list is for the open source ansible project. On Wed, Jun 28, 2017 at 1:27 AM, Luvpreet Singh wrote: > Hi, > > I am installing a fresh ansible tower on

Re: [ansible-project] Ansible Tower setup problem.

2017-08-01 Thread Andrew Latham
For tower questions and support please utilize https://access.redhat. com/products/ansible-tower-red-hat This mailing list is for the open source Ansible project. On Tue, Aug 1, 2017 at 9:53 AM, wrote: > Hello. > > I need to install Ansible Tower into Debian

Re: [ansible-project] Has ansible 2.3.2 been released?

2017-08-08 Thread Andrew Latham
Looks to be an unannounced release via https://github.com/ansible/ansible/commit/c7052b42c76bc626c481f22018d3396b84199a24 On Tue, Aug 8, 2017 at 9:53 AM, Anand Buddhdev wrote: > Hi folks, > > I can see a tarball of ansible 2.3.2 on Github, as well as in PyPi. Is > this

Re: [ansible-project] Book recommendations?

2017-06-12 Thread Andrew Latham
Paper books will become out of date quickly but try https://www.ansiblefordevops.com/ On Fri, Jun 9, 2017 at 10:34 AM, leam hall wrote: > First post, woot! > > I've done Puppet before and have worked on Linux for a while. Am moving to > Ansible and prefer paper books to

Re: [ansible-project] Ansible tower email notifications

2017-06-27 Thread Andrew Latham
For tower questions and support please utilize https://access.redhat. com/products/ansible-tower-red-hat This mailing list is for the open source ansible project. On Fri, Jun 23, 2017 at 3:39 AM, DM wrote: > Hi! > > I was wondering is it possible to change Ansible Tower

Re: [ansible-project] Using modules offline

2017-05-18 Thread Andrew Latham
Roles from https://galaxy.ansible.com/ maybe? You can down load and side load them if it is roles or modules. On Tue, May 16, 2017 at 3:03 AM, Avishay Niv wrote: > hello > > We installed ansible on a stand alone network that is not connected to the > internet. the only way

Re: [ansible-project] How to integrate Ansible Tower with AWS?

2017-05-31 Thread Andrew Latham
For tower questions and support please utilize https://access.redhat. com/products/ansible-tower-red-hat This mailing list is for the open source ansible project. On Tue, May 30, 2017 at 6:10 PM, SARANYA devotional R < sharankit@gmail.com> wrote: > What are the steps to consider while

Re: [ansible-project] Request for enhancement of the documentation for ansible module vmware_guest_snapshot

2017-05-31 Thread Andrew Latham
You would want to do a PR on https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_guest_snapshot.py On Wed, May 31, 2017 at 8:47 AM, Jörg Kastning wrote: > Hi Folks, > > I would like to request an enhancement of the module documentation

Re: [ansible-project] Ansible 2.4.0 (rc4 or rc5) seems significantly slower than Ansible 2.3.2

2017-09-18 Thread Andrew Latham
Please see https://github.com/ansible/ansible/blob/stable-2.4/CHANGELOG.md for the changes I would suggest you check that "pipelining = True" vs the default of False. On Mon, Sep 18, 2017 at 8:30 AM, Philippe Eveque wrote: > Any reasons for a significative slowdown

Re: [ansible-project] AWX: Updating roles on project update/install

2017-09-19 Thread Andrew Latham
AWX has a mailing list https://groups.google.com/forum/#!forum/awx-project On Tue, Sep 19, 2017 at 3:15 PM, Mike Biancaniello wrote: > I am running AWX inside of some docker containers and can't get the > project_update job to install roles from my requirements.yml file. > >

Re: [ansible-project] ansible_group_priority documentation

2017-10-08 Thread Andrew Latham
"""Group loading follows parent/child relationships. Groups of the same 'patent/child' level are then merged following alphabetical order. This last one can be superceeded by the user via ansible_group_priority, which defaults to 0 for all groups."""

Re: [ansible-project] Re: AWX Best Practices (Inventories and Workflows)

2017-10-17 Thread Andrew Latham
AWX has a mailing list at AWX Project On Tue, Oct 17, 2017 at 7:20 AM, Bobby Brockway wrote: > Bump > > > On Thursday, 12 October 2017 15:49:35 UTC+1, Bobby Brockway wrote: >> >> Hi all, >> >> I've been playing with AWX in a POC

Re: [ansible-project] adhoc only in local server

2017-08-24 Thread Andrew Latham
Try http://lathama.com/post/ansible-one-liners for a start. On Thu, Aug 24, 2017 at 12:13 PM, Tcpip wrote: > Hi all, > > Im working with adhoc commands but I can see that is only working in my > local server not doing the task in the remote server. > > Any ideas? > >

Re: [ansible-project] No logs being sent to Logstash

2017-08-25 Thread Andrew Latham
For tower questions and support please utilize https://access.redhat. com/products/ansible-tower-red-hat This mailing list is for the open source Ansible project. On Fri, Aug 25, 2017 at 8:42 AM, Ash Powell wrote: > We've recently upgraded to Ansible 2.3.2 and Tower 3.1.4 >

Re: [ansible-project] Translate docs

2017-10-04 Thread Andrew Latham
Luigi I am sure a pull request on the docs directory would be the right path. Sphinx has http://www.sphinx-doc.org/en/stable/intl.html so a normal POT file would work and adjusting the makefile to suite. On Wed, Oct 4, 2017 at 12:37 PM, Luigi Votta wrote: > Hello all. >

Re: [ansible-project] How to create a big inventpry file in ansible

2017-11-23 Thread Andrew Latham
Have a look at http://docs.ansible.com/ansible/latest/dev_guide/developing_inventory.html On Wed, Nov 22, 2017 at 7:52 PM, parwinderjit singh wrote: > Hi All, > > > I have a excel sheet which contain 1000 server hostname with there IP > address. I have to create a ansible

Re: [ansible-project] Password change for 350+ linux host using ansible but have to do without ssh copying

2017-11-23 Thread Andrew Latham
Saravana Use the inventory vars like mentioned in http://docs.ansible.com/ansible/latest/intro_inventory.html#list-of-behavioral-inventory-parameters On Thu, Nov 23, 2017 at 4:52 PM, wrote: > Hi > > We have got a task to change the password for 350+ linux host using >

Re: [ansible-project] 2.4 inventory example?

2017-11-01 Thread Andrew Latham
Looks like some doc-strings around https://github.com/ansible/ansible/blob/stable-2.4/lib/ansible/inventory/manager.py#L119 would be helpful. The code is there so you can read about what is needed. #yeahopensource On Wed, Nov 1, 2017 at 10:39 AM, Brantley West wrote: > Hello,

Re: [ansible-project] Cisco jump host

2018-05-18 Thread Andrew Latham
The general idea is covered at http://docs.ansible.com/ansible/latest/reference_appendices/faq.html#how-do-i-configure-a-jump-host-to-access-servers-that-i-have-no-direct-access-to On Thu, May 17, 2018 at 9:24 PM Tcpip wrote: > Hi all, > > I'm using Ansible for network

Re: [ansible-project] Docker module for `docker-compose run`?

2018-01-29 Thread Andrew Latham
http://docs.ansible.com/ansible/latest/docker_service_module.html On Mon, Jan 29, 2018 at 2:28 PM, Brandon Schlueter wrote: > In writing a playbook to bring up sentry according to its docs with > docker-compose, I ended up with a task list including: > > - name: run

Re: [ansible-project] Are there issue with mass deployment related to SSH?

2018-02-14 Thread Andrew Latham
I suggest you start with reading about http://docs.ansible.com/ansible/latest/intro_configuration.html#forks On Wed, Feb 14, 2018 at 10:23 AM, cmonty14 <74cmo...@gmail.com> wrote: > Hello! > > I have a question that derives from the comparison Ansible vs. Salt. > > As Ansible relies on SSH

Re: [ansible-project] Download multiple files from S3

2018-02-07 Thread Andrew Latham
Something like https://stackoverflow.com/a/35640797 would work. You can search and re-register the list if you only want .zip On Wed, Feb 7, 2018 at 12:21 AM, Suporter wrote: > How can i download multiple files from same bucket, can we use wildcard > for this? i am

Re: [ansible-project] Are there issue with mass deployment related to SSH?

2018-02-15 Thread Andrew Latham
gt;> This means there's no drawback with regards to performance when using >> Ansible in a landscape with +1000 servers? >> >> >> Am Mittwoch, 14. Februar 2018 19:36:22 UTC+1 schrieb Andrew Latham: >>> >>> I suggest you start with reading about http://docs.ansible

Re: [ansible-project] Building an ansible job to run customized CLI configurations

2018-02-23 Thread Andrew Latham
One of the many methods is to scp or sftp the full config as a template to the device and save as startup or running config and reload it. Then you don't need to muck around with as much expect logic. On Fri, Feb 23, 2018 at 2:42 PM, Jonathan Umpleby wrote: > So here's an

Re: [ansible-project] Speeding up very large playbooks

2018-08-07 Thread Andrew Latham
Just in the case you have not found this resource try https://docs.ansible.com/ansible/2.5/user_guide/playbooks_async.html On Mon, Aug 6, 2018 at 6:46 PM Pshem Kowalczyk wrote: > Hi, > > We have a scenario where we pre-generate a lot of configuration on the > controller host (targets are

Re: [ansible-project] getent group

2018-08-30 Thread Andrew Latham
Try using the examples at https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html?highlight=register#register-variables On Thu, Aug 30, 2018 at 10:24 AM wrote: > HI team, > > I have to check the group via getent if the group is not present I have > to create a new group.

Re: [ansible-project] Use Ansible to audit server configs across life-cycle environments?

2018-03-09 Thread Andrew Latham
You could check for a "file stat get_md5" and register it for output to a datafile On Fri, Mar 9, 2018 at 11:04 AM, Len S wrote: > > Does Ansible provide the ability to effectively provide a diff of configuration files of server components across lifecycle

Re: [ansible-project] Privilege escalation not working

2018-04-08 Thread Andrew Latham
Mobile right now, but looks like you need a become method and or become user. On Sun, Apr 8, 2018, 11:57 AM Kaushik Gosar wrote: > Hi, > > I am trying to execute an Ad-Hoc command which requires sudo privileges on > a remote machine. > > Below is the command and the

Re: [ansible-project] Issues with Network Automation

2018-03-27 Thread Andrew Latham
Jon http://docs.ansible.com/ansible/latest/modules/expect_module.html is what you may want to try. On Tue, Mar 27, 2018 at 10:31 AM, Jon wrote: > >

Re: [ansible-project] Ansible Documentation : French Translation

2018-03-16 Thread Andrew Latham
Kitslap You are fine to translate and share. You are only adding value to the project where there is currently no method of handling translations. In the future maybe there will be a solution for handling translations upstream. https://github.com/ansible/ansible/blob/devel/COPYING On Fri, Mar

Re: [ansible-project] Could ansile access remote hosts by serial console over LAN

2018-10-24 Thread Andrew Latham
Look at the example for out-of-band on https://docs.ansible.com/ansible/latest/modules/shell_module.html#shell-module On Wed, Oct 24, 2018 at 1:53 PM Dongxian Yao wrote: > Hi Rong, > > do you have any updates on this one? did you write a new module you can > share? > > Thanks! > Don > > On

Re: [ansible-project] ansible vault with ad hoc command line

2018-10-29 Thread Andrew Latham
Try something like... ansible --vault-id ~/.vault -e @ yourvault.yml This will expose the variables for your use, like in your inventory ansible_become: true ansible_become_method: su ansible_become_user: root ansible_become_pass: "{{ var_from_vault }}" inventory example

Re: [ansible-project] need some help with a password in a vault

2018-11-14 Thread Andrew Latham
At first glance I think you are missing a "-e" on the command line and setting the password correctly for the connection with "ansible_ssh_pass=" in your vault file. The user should be defaulting to root but you can set that also. On Wed, Nov 14, 2018 at 11:24 AM Brad Van Orden wrote: > I have

Re: [ansible-project] Use Ansible for post-provisioning setup?

2018-10-06 Thread Andrew Latham
Edward You just described one of the primary use cases of Ansible. The answer is YES! On Sat, Oct 6, 2018 at 2:01 PM Edward Crosby wrote: > Hello, all. > I hope this is the correct group to post this. I am trying to learn more > about Ansible. > I wanted to find if it is possible to use

Re: [ansible-project] How to syntax check list of tasks

2018-09-20 Thread Andrew Latham
Maybe something like this: python -c 'import yaml,sys;yaml.safe_load(sys.stdin)' < common-tasks.yml On Thu, Sep 20, 2018 at 1:15 AM wrote: > This might be in the docs, but I cannot find it. I have the following > files: > > first-playbook.yml > second-playbook.yml > common-tasks.yml > >

Re: [ansible-project] Typo in hard link example for file module?

2019-08-07 Thread Andrew Latham
Sandip It appears to be correct in code, maybe a recent fix that just has not resulted in a refreshed docs page. See https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/files/file.py#L147 On Wed, Aug 7, 2019 at 4:12 PM Sandip Bhattacharya < sand...@showmethesource.org> wrote: > >

Re: [ansible-project] How to use Ansible in distributed environment where I do not have direct access to end server on which Ansible has to run modules except Jump host?

2019-07-24 Thread Andrew Latham
https://docs.ansible.com/ansible/latest/reference_appendices/faq.html#how-do-i-configure-a-jump-host-to-access-servers-that-i-have-no-direct-access-to On Wed, Jul 24, 2019 at 2:02 AM EasyCook by Shailesh Lonare < shaileshlonar...@gmail.com> wrote: > I am trying to understand how Ansible would

Re: [ansible-project] Need help regarding Ansible Role/Playbooks documentation

2020-04-15 Thread Andrew Latham
It is just YAML you can do something like https://pypi.org/project/sphinxcontrib-yaml/ and I am sure there are parsing rules that could address variables. On Tue, Apr 14, 2020 at 7:46 AM Rahul Kumar wrote: > Hi Ansible Gurus, > I have many Ansible Roles and I want to document each and every

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

2020-04-15 Thread Andrew Latham
I have seen issues with usernames or home directories that include spaces, I see your home directory has a dot "g.james". Try this in another path. On Tue, Apr 14, 2020 at 9:46 PM George James wrote: > I am new to ansible. > > I create an inventory file > > [web] > 167.172.xxx.xxx

Re: [ansible-project] Assert documentation and possibilities

2021-01-19 Thread Andrew Latham
It is documented at https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html and conditionals is the search term you wanted. On Tue, Jan 19, 2021 at 7:20 AM PluftPlayzRoblox wrote: > Sorry for newbie question but I cannot find any information on what can be > done with

Re: [ansible-project] How to make sure that values for all keys with same name are strings?

2023-11-03 Thread Andrew Latham
I saw https://github.com/ansible/proposals/issues/72 and thought that maybe the history may help. I can remember padding with a space to keep an ID a string that the consumer filters out but YMMV On Fri, Nov 3, 2023 at 6:57 AM Dick Visser wrote: > Hii, > > I have a structure like this: > > ---

Re: [ansible-project] Windows Update script fails

2022-06-09 Thread Andrew Latham
You can use information from https://docs.ansible.com/ansible/latest/user_guide/playbooks_error_handling.html like adding entries like: ignore_errors: true changed_when: false failed_when: false On Thu, Jun 9, 2022 at 8:42 AM Stephen Hollyoak wrote: > I have a script which

Re: [ansible-project] Convert from short syntax to YAML syntax automatically

2022-06-03 Thread Andrew Latham
Assuming you mean inventory you can use -y or --yaml via https://docs.ansible.com/ansible/latest/cli/ansible-inventory.html e.g. ansible-inventory --inventory input_inentory --yaml --list ** I did a search for `short syntax` and could not find what it means in this context so I guessed it meant

Re: [ansible-project] ansible-2.9 how to password

2022-04-29 Thread Andrew Latham
https://docs.ansible.com/ansible/latest/reference_appendices/faq.html#how-do-i-generate-encrypted-passwords-for-the-user-module as noted from https://docs.ansible.com/ansible/latest/collections/ansible/builtin/user_module.html On Fri, Apr 29, 2022 at 6:30 PM Warron French wrote: > I am very new

Re: [ansible-project] Adding Windows host via SSH

2022-04-29 Thread Andrew Latham
The setup facts module is looking for Python. I would comment more but am away from systems. You have success in connecting to the host but it is likely trying to run an ansible-ball file. On Fri, Apr 29, 2022 at 7:05 AM John Carter wrote: > Hello. I am running AWX with ansible 2.9.18. I have

Re: [ansible-project] Adding Windows host via SSH

2022-04-29 Thread Andrew Latham
https://docs.ansible.com/ansible/latest/user_guide/playbooks_vars_facts.html#disabling-facts On Fri, Apr 29, 2022 at 10:46 AM John Carter wrote: > Any suggestions on how to disable that? > > On Friday, April 29, 2022 at 10:36:18 AM UTC-4 lat...@gmail.com wrote: > >> The setup facts module is

Re: [ansible-project] Adding Windows host via SSH

2022-05-02 Thread Andrew Latham
No worries, Glad you got it all figured out. On Mon, May 2, 2022 at 7:13 AM John Carter wrote: > I am so sorry, I totally misunderstood what you were saying. I should have > known how to do that. Thank you very much for the help. That solved my > issue. > > On Friday, April 29, 2022 at 2:55:04

Re: [ansible-project] vi editor for Ansible playbook

2022-10-01 Thread Andrew Latham
Maybe you want https://github.com/pearofducks/ansible-vim On Sat, Oct 1, 2022 at 8:16 AM Aharonu wrote: > Hi All, > > Could anyone please direct me what options i need to use/enable for while > writing playbooks in vi editor colour indication lines as mentioned > attached example. > > Thank

Re: [ansible-project] Offline Execution Environment Setup and Usage

2022-10-07 Thread Andrew Latham
maybe try https://groups.google.com/g/awx-project On Fri, Oct 7, 2022 at 6:13 PM Syahrul Aiman Shaharuddin < aiman.shaharud...@gmail.com> wrote: > Hi guys, > > I've created my Execution Environment (EE) on a machine with internet > access (online). > > Now, I would like to use this EE on an

Re: [ansible-project] Archiving user home directories with a var_files

2022-11-01 Thread Andrew Latham
Kenady, I think you are looking to loop[1] the users correct? aka loop: "{{ users }}" 1. https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html On Tue, Nov 1, 2022 at 10:31 AM Kenady Inampudi wrote: > Archiving user home directories > > user.yml > --- > user: > - user1

Re: [ansible-project] Forks?

2022-11-01 Thread Andrew Latham
Mike There are dedicated docs pages[1][2] for this topic. I must admit there is a fair bit of missing info in your query. So to recap what we know: * ~16k hosts * forks set to 50 * unknown strategy * unknown config for async, throttle, serial and the other settings that can affect * unknown

Re: [ansible-project] Help with connecting to pi running older embedded os -- possible to specify temp directory in inventory?

2023-01-05 Thread Andrew Latham
You did not share your playbook so giving a generic answer. If embedded and the filesystem is read-only you may need to use raw commands. ``` - name: "System Uptime" raw: "/usr/bin/uptime" ``` On Thu, Jan 5, 2023 at 10:48 AM Tom Stewart wrote: > Thanks, Brian. I appreciate that the error

Re: [ansible-project] Help with connecting to pi running older embedded os -- possible to specify temp directory in inventory?

2023-01-05 Thread Andrew Latham
or as a oneliner ``` $ ansible hostname -m raw -a uptime ``` On Thu, Jan 5, 2023 at 11:36 AM Andrew Latham wrote: > You did not share your playbook so giving a generic answer. > > If embedded and the filesystem is read-only you may need to use raw > commands. > > ``` > -

Re: [ansible-project] at - specific time & date

2022-12-12 Thread Andrew Latham
So you are using ansible.posix.at? That plugin uses a file to run AT as seen at https://github.com/ansible-collections/ansible.posix/blob/main/plugins/modules/at.py#L82 So in the code it uses the ```now +``` method. This may be a situation where a command/shell call would be the solution.

Re: [ansible-project] why does this loop/when fail

2022-11-18 Thread Andrew Latham
Rob Trying to follow along, So on Task 3 you want to iterate over the list t_list and match if the digit is in variable s? First thought is that you are testing if an int is a string. On Fri, Nov 18, 2022 at 12:00 PM rjwagn...@gmail.com wrote: > Hey all - I think I'm losing my mind. Can

Re: [ansible-project] why does this loop/when fail

2022-11-18 Thread Andrew Latham
hable=0failed=0 skipped=1rescued=0 ignored=0 I did this in a hurry, so there may be mistakes or more awesome ways of doing this. YMMV On Fri, Nov 18, 2022 at 2:05 PM Andrew Latham wrote: > Rob > > Trying to follow along, So on Task 3 you want to iterate over the list > t_lis

Re: [ansible-project] yum module to skip checking the yum repositories

2022-11-09 Thread Andrew Latham
Attempting to grok this, so you want to install an RPM on a system that has no repos configured. Maybe try cacheonly as mentioned on https://docs.ansible.com/ansible/latest/collections/ansible/builtin/yum_module.html I do not have an RPM based system here to test on. You could use the RPM

Re: [ansible-project] gather_timeout in ansible.cfg DEPRECATED

2023-04-24 Thread Andrew Latham
In a play it looks like you can just add `gather_timeout: 60` still so that is less to add but your findings are spot on otherwise. - name: 'A playbook' hosts: printservers gather_timeout: 60 tasks: - name: 'Do something' ansible.builtin.debug: var: ansible_play_hosts_all

Re: [ansible-project] what data is transmitted by SSH to the agent host?

2023-05-01 Thread Andrew Latham
Using the Raw module it can be shell but most of the time https://docs.ansible.com/ansible/latest/dev_guide/developing_program_flow_modules.html#ansiballz-framework Network device modules vary. On Mon, May 1, 2023 at 7:35 PM didilong wrote: > Sorry, I'm an ansible newbie. When Ansible is

Re: [ansible-project] ssh: no matching host key type found

2023-06-12 Thread Andrew Latham
While this is not an Ansible question you can allow other types via SSH args like the following example for legacy hardware. ssh -o KexAlgorithms=+diffie-hellman-group1-sha1 -o HostKeyAlgorithms=+ssh-dss -c aes256-cbc On Mon, Jun 12, 2023 at 12:05 PM Azadeh Amirhosseini <

Re: [ansible-project] Ansible variables with network switches

2023-06-13 Thread Andrew Latham
Away from my lab but knee-jerk is that group-vars should allow you to organize that information. On Tue, Jun 13, 2023 at 1:38 PM Cristian Cardoso < cristian.cardos...@gmail.com> wrote: > I'm using ansible to configure ports on my Juniper switches where I use > LACP to configure an aggregation of

Re: [ansible-project] ansible_become_pass

2023-06-02 Thread Andrew Latham
Try ansible_become_password https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_privilege_escalation.html On Fri, Jun 2, 2023 at 8:49 AM Tony Wong wrote: > I am trying to run a pb that requires me to enter vault credentials as > well as specifying -k > for the become pass > > Is

Re: [ansible-project] how to get in touch with the owners of this list?

2023-06-10 Thread Andrew Latham
Maybe try https://github.com/ansible-community/community-topics/issues and note the documented email does not work? On Sat, Jun 10, 2023 at 6:07 AM Dick Visser wrote: > Hii, > > I flagged the recent job advertisements as spam, but also wanted to > contact the owners of this list about that. I

Re: [ansible-project] Authentication to linux machines using Ansible and Vault SSH

2023-06-12 Thread Andrew Latham
Sonali Please confirm if you are speaking of Ansible Vault or Hashicorp Vault. On Mon, Jun 12, 2023 at 9:56 AM Sonali Sarade wrote: > Hi Team, > > I'm looking for a solution where I can login to linux machine by > authenticating it using Ansible and Vault SSH. > > Please suggest me how can I

Re: [ansible-project] Check_mode is not working for vmware_rest api module

2023-06-06 Thread Andrew Latham
Deepak You may get more responses if you provide actual examples in the form of playbook/task/role you are attempting. Please also identify the Ansible version and the VMWare module/version you are using. On Tue, Jun 6, 2023 at 2:42 AM Deepak B K wrote: > We are testing ansible vmware module

Re: [ansible-project] Date Time Conversion

2023-07-26 Thread Andrew Latham
* https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior * https://github.com/ansible/ansible/blob/devel/lib/ansible/template/__init__.py#L829-L839 typed without testing, sorry, give it a go - name: create my file ansible.builtin.file: path: /tmp/{{

Re: [ansible-project] Apt module pass arguments

2023-06-21 Thread Andrew Latham
Jeroen There are several issues related and a PR at https://github.com/ansible/ansible/pull/76632 that you may want to look at. Feel free to do a search of https://github.com/ansible/ansible/issues for related topics. On Wed, Jun 21, 2023 at 6:37 AM Jeroen Rijken wrote: > Hi, > > Is it

Re: [ansible-project] community.docker.docker_login issue

2023-06-28 Thread Andrew Latham
The default url is correct, why are you setting it to that address? from https://docs.ansible.com/ansible/latest/collections/community/docker/docker_login_module.html registry_url string The registry URL. Default: "https://index.docker.io/v1/; via CLI $ docker info | grep Registry Registry:

Re: [ansible-project] Removing an LDAP attribute regardless of its value

2023-06-26 Thread Andrew Latham
Sounds fun, I landed on https://git.theo-andreou.org/Personal/ansible-ldap-modules/src/commit/03bc81122d419a0cede79a97d802af2fb700d73d/README.md?lang=tr-TR#user-content-removing-an-attribute which might do what you want On Mon, Jun 26, 2023 at 10:12 AM Dick Visser wrote: > Hii, > I am trying to

Re: [ansible-project] Configuration Drift

2023-06-27 Thread Andrew Latham
And yes there is an inotify tool for Ansible a la https://github.com/gantsign/ansible-role-inotify Or you can set an attribute ``` chattr +i myconf.conf ``` or do it via https://docs.ansible.com/ansible/latest/collections/ansible/builtin/file_module.html On Tue, Jun 27, 2023 at 3:18 PM Brian

Re: [ansible-project] Module no longer supplying default values for variables

2023-05-13 Thread Andrew Latham
The AWX list is at https://groups.google.com/g/awx-project which may have information and users to help you. On Fri, May 12, 2023 at 8:40 AM Kevin Knox wrote: > On 5/10 @ 12:11 P.M. my AWX instance suddenly changed its own behavior. I > can find no changes anywhere in the system. A job that had

Re: [ansible-project] Re: Is there a task/module to create a vaulted file?

2024-05-28 Thread Andrew Latham
Unable to test from current location but do you need to delegate_to for this? On Tue, May 28, 2024 at 7:23 AM Dick Visser wrote: > > > On Tue, 28 May 2024 at 15:17, Dick Visser wrote: > >> >> This seems to work, and because ansible.cfg contains the right >> information (vault_identity_list,

Re: [ansible-project] Re: Is there a task/module to create a vaulted file?

2024-05-28 Thread Andrew Latham
choice. On Tue, May 28, 2024 at 8:18 AM Dick Visser wrote: > > > On Tue, 28 May 2024 at 15:42, Andrew Latham wrote: > >> Unable to test from current location but do you need to delegate_to for >> this? >> > > Yes, I didn't explicitly mention it, but I'm runn