Todd- thank you for clearing that up for me
I made default.yml all.yml amd reran things with the same errors.
I am running my roles from within a playbook like this.
- roles
- role1
become: true
- role2
become: true
On Tue, Feb 13, 2024 at 2:51 PM Todd Lewis wrote:
> This
A generic Deb 11 image - not one we "own".
On Mon, Oct 23, 2023 at 8:50 AM Dick Visser wrote:
> What AMI are you using?
>
> On Mon, 23 Oct 2023 at 13:34, Kathy Lyons wrote:
>
>> Dick - just this morning I went to update packages on an AWS instance and
>> it fa
Dick - just this morning I went to update packages on an AWS instance and
it failed because the disk was not /dev/sda. I had to logon to the box,
issue apt update -y, then a dialog popped up asking me for the drive to
install grub-pc on.
On Mon, Oct 23, 2023 at 7:31 AM Kathy Lyons wrote
That's great - thank you!
Now, does anyone know how I can do an "update grub-pc" with that particular
hard drive so it doesn't prompt me for the disk drive?
On Mon, Oct 23, 2023 at 7:15 AM Dick Visser wrote:
> What exactly do you mean by 'update packages'?
> We're using Debian EC2 instances
The only issue is that I don't know what the name of the disk is -
/dev/sda, dev/nvme0n1p1, etc.
On Mon, Oct 23, 2023 at 6:36 AM Thanh Nguyen Duc
wrote:
> You may try to gather fact, register the fact then execute the command in
> the next task. For me i usually use shell to query what i need
should print
"your playbook name goes here"
...
On 17.10.23 19:34, Kathy Lyons wrote:
When I print out "{{ ansible_play_name }}" I simply get "localhost."
On Tue, Oct 17, 2023 at 12:18 PM 'Philippe Kueck' via Ansible Project
<mailto:ansible-project@googlegroups
When I print out "{{ ansible_play_name }}" I simply get "localhost."
On Tue, Oct 17, 2023 at 12:18 PM 'Philippe Kueck' via Ansible Project <
ansible-project@googlegroups.com> wrote:
> Hi,
>
> On 17.10.23 18:13, Kathy Lyons wrote:
> > We use
We use it in many instances to only do something for a specific playbook.
We have about 5 playbooks that work on different networks and rather than
maintain 5 different playbooks we use the "when playbook_name == abc.yml" a
lot. Is there another way to get the playbook name?
On Tue, Oct 17, 2023
Sorry, that was a typo on my part. The real text was ascii_letters. Darn
fat fingering.
On Mon, Oct 2, 2023 at 9:59 AM Todd Lewis wrote:
> Your 'ascii letters' should be 'ascii_letters' (with an underscore);
> maybe that's throwing things off?
>
> On 10/2/23 8:26 AM, Kathy L wrote:
>
> I am
That worked out well, thank you!
On Tue, Sep 5, 2023 at 9:44 AM Richard Megginson
wrote:
> You could put the tasks that you want to run in the loop in a separate
> tasks file, then use include_tasks with with_sequence
>
> On Tue, Sep 5, 2023 at 7:39 AM Kathy Lyons wrote:
>
>&
Thanks. Any idea how I would then add these users to the system without
using a block? I forgot to put this last part of the code I'd like to use
in.
- name: Add users
user:
name: "{{ username }}"
password: {{ "passwd" }}
shell: /bin/bash
On Tue, Sep 5, 2023 at 8:37 AM 'Rowe,
That will work - yes. I was so focused on using lineinfile or another
ansible module, I forgot about sed. Thank you!
On Thu, Jul 27, 2023 at 10:09 AM dulhaver via Ansible Project <
ansible-project@googlegroups.com> wrote:
> would this do what you want?
>
>
> - name: edit a line in a file
>
I looked at that, but we want to vary the length of the password each time
this is run.
On Tue, Apr 18, 2023 at 12:30 PM Abhijeet Kasurde
wrote:
> Have you tried -
>
> - name: Generate random string with length 12
> ansible.builtin.debug:
> var: lookup('community.general.random_string',
13 matches
Mail list logo