I don't think you can, you'd have to add an explicit task to fetch that
information somehow.
For example by running vgdisplay and registering the results.
If your have a recent enough OS then the lvm utilities have a json output
option which will make this a lot easier.
On Wed, 3 Feb 2021 at 03:5
You should rewrite your playbook to test for the existing of such a vg, and
only add an lv if the upper vg exists.
On Wed, 3 Feb 2021 at 03:44, Aris Aguirre wrote:
> Instead of failed for the server that doesnt have VG, it will show a
> message "no vg", instead of showing fatal error. is there a
I cant see my volume group vgtemp if I will run a ansible -m setup.
How to declare or how to make it available/define if i will run ansible -m
setup?
Thanks
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and
Instead of failed for the server that doesnt have VG, it will show a
message "no vg", instead of showing fatal error. is there a way to replace
the fatal errors with debug message?
On Tuesday, February 2, 2021 at 4:50:15 PM UTC-6 dick@geant.org wrote:
> Although the docs on the size paramet
Hi all,
We're happy to announce that the ansible-3.0.0 beta1 package is now
available! This update is based on the ansible-base-2.10.x package
just like ansible-2.10 was so the changes shouldn't be too major.
However, it does contain new major versions of many collections which
means that there wi
Although the docs on the size parameter don't mention a default behavior,
they do mention accepting a percentage of VG/PVS/FREE:
https://docs.ansible.com/ansible/latest/collections/community/general/lvol_module.html#parameter-size
.
There is an example about it as well with "100%FREE":
https://docs
Instead of throwing FATAL errors out there, can we do something like? It
will say "Volume group vgaris does not exist" if the VG doesnt exist,
and if it is like creating the 3g instead of 7G, it will say,
"insufficient space, will create the 3G"
My playbook:
###
---
-
Got it.
I'm attempting to not have to update just yet, we're integrating Rundeck
organization wide and I'm hoping to just need to convert into their
environment and call it a day.
Thanks again
On Tuesday, February 2, 2021 at 3:19:55 PM UTC-5 jbor...@gmail.com wrote:
> So your particular error
There are a number of alternatives
inventory_hostname in (groups.dev + groups.lb)
inventory_hostname in lookup('inventory_hostnames', 'dev:lb')
['dev', 'lb']|intersection(group_names)
On Tue, Feb 2, 2021 at 2:44 PM ursa Brown wrote:
>
> Is there a shortcut way for this?
> inventory_hostname i
Is there a shortcut way for this?
inventory_hostname in groups['dev'] or inventory_hostname in groups['lb']
I have a long playbook, im trying to cut some text.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group an
So your particular error is because you are using an Ansible version that
is too old. You are trying to run the 'ansible.windows.win_shell'
collection module but Ansible hardcoded in a check to only allow win_shell
(the builtin version). This has been fixed in recent Ansible versions (I
cannot
Hi
You seem to be circling around the fact that you don't have internet
connectivity in your environment.
And the recommendations that were given by the previous posters didn't get
any traction.
There are many ways to get content onto an air gapped system.
But this is entirely dependent on your en
On 2/2/21 10:01 AM, ursa Brown wrote:
in rhel-system-roles package the geerlinguy or haproxy role is not
there. How will I use a geerlinguy haproxy role?
I don't know, but I'm curious as to why you thought the "geerlinguy
haproxy" role was provided by the linux-system-roles or
rhel-system-ro
in rhel-system-roles package the geerlinguy or haproxy role is not there.
How will I use a geerlinguy haproxy role?
Thanks
On Tuesday, February 2, 2021 at 9:59:04 AM UTC-6 Richard Megginson wrote:
> On 2/2/21 8:27 AM, ursa Brown wrote:
>
> For start I only have a RHEL7 iso.
>
>
> In RHEL the pac
On 2/2/21 8:27 AM, ursa Brown wrote:
For start I only have a RHEL7 iso.
In RHEL the package is called `rhel-system-roles`.
On Tuesday, February 2, 2021 at 9:02:12 AM UTC-6 Richard Megginson wrote:
On 2/1/21 7:33 PM, ursa Brown wrote:
So the yum install linux-system-roles wont fi
I managed to net a better result by specifying the collection at the top of
the playbook with
collections:
- ansible.windows
and making the play
- name: Hi Jason
win_shell: echo "HI"
---
continuing on and using the same collection I managed to get the rest of my
PS nonsense to w
For start I only have a RHEL7 iso.
On Tuesday, February 2, 2021 at 9:02:12 AM UTC-6 Richard Megginson wrote:
> On 2/1/21 7:33 PM, ursa Brown wrote:
>
>
> So the yum install linux-system-roles wont fix this?
>
>
> Yes, you can use `yum install linux-system-roles` - what platform are you
> using f
On 2/1/21 7:33 PM, ursa Brown wrote:
So the yum install linux-system-roles wont fix this?
Yes, you can use `yum install linux-system-roles` - what platform are
you using for your Ansible controller node? Fedora 32/33?
On Monday, February 1, 2021 at 4:34:17 PM UTC-6 jbor...@gmail.com wr
By mirror I mean cloning, downloading content from ansible-galaxy and
placing it into a server in your network.
This server can then expose the very same content via http/s, git protocols.
So you'll need to come up with an strategy to fetch content upstream to
your network.
After you've built your
when you say mirror? like this?
1. cp -r /usr/share/ansible/roles/rhel-system-roles.network
/home/ansible/roles/
On Monday, February 1, 2021 at 2:14:09 PM UTC-6 ursa Brown wrote:
> there should be a offline flag..
>
> On Monday, February 1, 2021 at 10:34:11 AM UTC-6 jruar...@gmail.com wrote:
So pulling this from docs.ansible.com
- name: Run a command under a non-Powershell interpreter (cmd in this case)
ansible.windows.
win_shell: echo %HOMEDIR%
args: executable:
cmd
register: homedir_out
-
That aside, following your precise example
- ansible.windows.win_shell: echo "HI"
-
On 2/2/21 12:13 PM, Deepak Gowda wrote:
> HI All,
>
> I have a list of files in C:\Users\xxxuser\Downloads\ ,I am trying to find
> out if i can pull the list of files/folders
> present in windows on the ansible node.
>
> i have the below playbook which doesnt give any error nd doesn't give me a
HI All,
I have a list of files in C:\Users\xxxuser\Downloads\ ,I am trying to find
out if i can pull the list of files/folders present in windows on the
ansible node.
i have the below playbook which doesnt give any error nd doesn't give me a
list,
- hosts: windows
tasks:
- name: Find Fi
23 matches
Mail list logo