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
> following errors messages? Any one know why? Any one have suggestions on
> how i should re-write it properly?
>
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?
-
---
In the above message, I mentioned the error is just: "No such file or
Directory" but I forgot the mention the in which part of the playbook where
I am the getting error is:
TASK [Gathering
Facts]**
On Friday, 25
Hi Members,
I tried running my ansible playbook using below linux
command on CentOS 7 (Minimal Install - Command line only). But
Unfortunately I am getting an error message. How to run it properly using
my altinstalled Python 3.8.5. And also How to know on which folder the
Hi,
want to implement ansible like docker install, docker pull.
Lamp installation in a docker image, after this docker image, want to use
in GitLab.
Using git runner then the developer can download this image which is
already set.
Using GitLab just one-click setup will ready that's I want in my
On Thu, 24 Sep 2020 09:04:03 -0700 (PDT)
Vineeth Joseph Abraham wrote:
> ... Can someone help me with steps in ansible or
> shell command to replace the zone ?
Use module "community.general.timezone"
https://docs.ansible.com/ansible/latest/collections/community/general/timezone_module.html
Hello guys
I work with an API that is pretty old and only supports get of a whole
bunch of data objects.
The data is quite complex as I decided to define my own module/plugin to
parse and store the result in memory by using a dictionary with support of
lookup by a specific keyword.
So what I
Hi Members,
I sincerely requesting you all to kindly have a
look on my recent Question and answer if possible. Please doesn't take it
otherwise. I am desperate, that's why. Hope you understand...
With Hope,
Prabhakaran
On Thu, 24 Sep 2020, 19:33 Prabhakaran Karuppaih, <
What if you want to use another directory for hosts, this is where the
ansible.cfg file comes in handy. So where does this file go in MacOSX?
On Monday, November 30, 2015 at 11:30:54 AM UTC-6 rup wrote:
> We don't bother with the /etc/ansible/hosts file because we installed
> ansible in a
Hi All,
Is there a way Ansible can read environment variables which AWS
CloudFormation creates ?.
For example : CloudFormation can create ANSIBLE_SOURCE env variable with
the S3 bucket name that Ansible can read to pull the necessary files for a
VM.
Thanks in Advance.
Vineeth
--
You
I suggest taking a look at the service module
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/service_module.html
You can use this module to update both YUM and APT packages.
Some packages have different names, so be sure to take that into account.
You can see an example here:
How do you perform that currently?
On Thu, 24 Sep 2020 at 19:39, Tony Wong wrote:
> how can i update both ubuntu and centos boxes all in one playbook?
>
>
>
>
>
>
>
>
>
> --
>
>
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
>
>
> To
how can i update both ubuntu and centos boxes all in one playbook?
--
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
got it resolved.
i used the lineinfile module to replace with the timezone
- lineinfile:
path: /etc/sysconfig/clock
regexp: 'ZONE='
line: 'ZONE="{{ timezone }}"'
state: present
backup: yes
when: current_zone.stdout != '{{ timezone }}'
On Thursday, 24 September 2020 at
Hi Racke,
Thank you for your response. I have used pause module and it got printed as
expected. Is there a way to store that printed content in variable? I have
to copy that content to a file and add few extra lines to that file and
have to apply that configuration content to firewall. Please let
Hi
Following is the script to change the timezone in ec2-instance
vars:
- timezone: Canada/Eastern
- name: Check current timezone
shell: awk -F\" '{ print $2}' /etc/sysconfig/clock
register: current_zone
changed_when: False
- name: Set EST timezone
file:
On 9/24/20 3:46 PM, Devops testing wrote:
> play:
> - set_fact:
> irules: "{{ rule | json_query('[*].definition') }}"
> - debug: msg: "{{ irules }}"
>
> output:
> "msg": [ "when HTTP_REQUEST {\n switch -glob [HTTP::uri] {\n
> \"*HAC*\" { pool
Hi Racke,
Use Python 3 :-).
I have installed Python 3.8.5
Set the following variable (e.g. in your inventory)
Sorry. I don't know How to do it... Need your Help on this..
ansible_python_interpreter: /usr/bin/python3
Where to enter the above codeline. Please explain.
With Hope,
Prabhakaran
On
play:
- set_fact:
irules: "{{ rule | json_query('[*].definition') }}"
- debug: msg: "{{ irules }}"
output:
"msg": [ "when HTTP_REQUEST {\n switch -glob [HTTP::uri] {\n
\"*HAC*\" { pool char.hr.cal.ed.ABC.pool }\n \n }\n}" ]
I'm expecting output to
Task synatx
- name: create some file
file: path=/tmp/risratho.txt state=touch mode='0755'
delegate_to: localhost
i would like to rephrase my word on ansible tower it is giving below
error.
fatal: [80.0.20.219 -> localhost]: FAILED! => {
"changed": false,
"module_stderr": "/bin/sh:
Hi All,
Need your guidance.
I am trying to create a file on Ansible Tower local host.
Below is the task which syntax
---
- name: create some file file: path=/tmp/risratho.txt state=touch
mode='0755' delegate_to: localhost
it is working fine on ansible engine.
fatal: [80.0.20.219 ->
Hi Mr.Racke,
My Sincere thanks to you for answering most of my
Questions. Would you Mind if I ask you some more Questions too.. Please
reply..
With Hope,
Prabhakaran
On Thu, 24 Sep 2020 at 12:10, Stefan Hornburg (Racke)
wrote:
> On 9/24/20 8:12 AM, Prabhakaran Karuppaih
HI Team,
can someone share or point me to a playbook that can be used to create
the iis websites dynamically on windows.
i have this currently that i found on internet but doesnt seem to be working.
---
- hosts: all
vars:
ansible_site_path: C:\inetpub\wwwroot\ansibletest
Solved the issue using when conditions for the plays and it perfectly.
Install MSSQL version and edition depends on the user input (vars_prompt)
on the target machine.
---
# tasks file for mssql
- include: download_sqlexpress2012.yml
when: sql_version == "2012" and sql_release == "exp"
-
On 9/24/20 8:12 AM, Prabhakaran Karuppaih wrote:
> How does the corresponding task looks like and what is your Linux
> distribution?
>
> Hi Sir, Thanks for your reply. I am using CentOS 7 (Minimal installation) -
> Command Line Only
>
> I have attached the Task (starfish.yml)
>
> Use Python 3
It works now. It does not allow neither provider nor connection: local must
be network_cli. What replaces provider?
El martes, 22 de septiembre de 2020 a las 18:19:17 UTC+2,
dick@geant.org escribió:
> You didn't provide the playbook, but from that error it's pretty
> obvious that you're
How does the corresponding task looks like and what is your Linux
distribution?
Hi Sir, Thanks for your reply. I am using CentOS 7 (Minimal installation) -
Command Line Only
I have attached the Task (starfish.yml)
Use Python 3 :-)
Sorry to say... Actually I am reading a book to learn Asterisk.
27 matches
Mail list logo