Are these Linux Machines?
how many Domain Controllers are in your Environment if you have more then
one it may be doing a round-robin on the Kerberos and failing on one Domain
and not on the other.: you need to start restricting down to only allow
your Linux Server to Connect to one AD.
--
Did you check the windows Event logs for the Active Directory
--
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.
So you want to do something like Terraform init / plan & Apply and once
finished you want to do a Terraform Destroy?
No Ansible doesn't do State Files
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and
>
> I'll assume you are refering to Custom Specs within vCenter :
>
>
You can use the following:
https://docs.ansible.com/ansible/latest/modules/vmware_guest_module.html
*customization_spec*
instead of the win_get_url use the win_package that will install the
application for you vm_tools
win_package:
path:
https://repo.saltstack.com/windows/Salt-Minion-3000-Py3-AMD64-Setup.exe
product_id: 'Salt-Minion-3000-Py3-AMD64-Setup.exe'
arguments:
Hi,
It may be easier to use PowerShell within an Ansible caller.
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-psdrive?view=powershell-7
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To
I would advise speaking to your AD Team or your GPO Administrator, They may
have updated their GPO Policies to stop communication over the ports used
for Kerberos: This Issue doesn't seem to be an Ansible issue but an issue
with your Environment setup.
--
You received this message because
It's outputting your items list, as you have msg on the list if you are looking
to put the info you need to use a register then either var or message that
register
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this
>
>
>>- What is your Cloud Service Provider that this PoC will take place ?
>> - Using just "OpenVPN" Soultion on a cloud provider isn't best
>> practice when it comes to Security you can download an OpenVPN
>> instance on
>> EC2 market, but you may have better option
If your looking at doing work on Active Directory; you may need to switch over
to "win_domain_membership"
--
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
Another way I know is to send the reg to the stdout and cat that stdout
into the other playbook.
similar to outputting to the File, but if the API Value is big you may be
better off with the Text File.
register: test
- debug: msg="{{test.stdout}}"
tasks:
- shell: cat
Why two Playbook ?
But either way, Copy the Reg to a Local Json File
Then in your Second Playbook Just read in the JSON File
name: Read Json File
shell: cat Info.json
register: json_file
(json_file.stdout | from_json).VALUE
--
You received this message because you are subscribed
Is the Body Correct ? and that you aren't missing any JSON values?
--
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
Hi Mani,
Your best bet would be to use PowerCLI,
https://communities.vmware.com/thread/539904?start=15=0
--
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
>
>
>>> It seems every Question you post in here 90% of the troubleshooting
>>> seems to be issues around your indentation, I'll recommend reading up on
>>> the basic of Ansible and how yaml works if your having issues like these...
>>> Also can you Please fix this from the code you have
A Quick Google Search Returned this for me. I'll assume you did the same?
https://stackoverflow.com/questions/41194021/how-can-i-show-progress-for-a-long-running-ansible-task
On Sunday, May 17, 2020 at 6:26:50 PM UTC+1, Tony Wong wrote:
>
> is there a progress bar available in TASK?
>
>
When you Run Windows Update it returns all available Updates as you can see
from your Output it's skipping as they aren't in the Whitelist
Your WHEN statement is wrong. you need to Set it to something like when:
update_result.reboot_required == True
On Sunday, May 17, 2020 at 6:43:28 PM
Hi All,
I'm getting the Following Error When trying to Run an Ansible Playbook.
even when i have validate_certs Set to False, it's still displaying the
issue.
Unverified HTTPS request is being made. Adding certificate verification is
strongly advised. See:
Again you seem to be missing vaules
reboot: yes
When: """
--
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.
Also appears you are missing the Tasks: element in your 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
>
> Hi,
>
you could just use the following Folder: /
That will automatically place the Server into the path of Datacenter/vm/
Using Folder would place it into a more specific folder if needed i.e
Folder Datacenter/vm/Development/
--
You received this message because you are subscribed to
Using the Example Curl -X you can use the Ansible URI Module curl -X POST
http://developer:developer@localhost:8080/job/test/buildWithParameter
--data-urlencode json='{"parameter": [{"name":"paramA", "value":"123"}]}'---
- name: Jenkins Remote Build
hosts: localhost
connection:
Hi,
In order to push jobs from Ansible or even Python to Jenkins you need to make
sure Remote Trigger is enable and an API Token has been created for your
Jenkins User. You can Then just use a Post request using the Ansible URI module
--
You received this message because you are subscribed
Hi All,
Just wondering is their a better way of doing the Following?
---
- hosts: localhost
gather_facts: false
tasks:
- name: Getting vCenter Details
uri:
url: http:///mdb/{{ fqdn }}
return_content: yes
body_format: json
register: mdb_console
- copy:
Not sure if it's possible with ansbile but with Salt you can set Grains and do
if else statements based on those grains
{% if role[host1] }
- role: host1
{% elif role[hoat2] %}
-role: host 2
{%endif%}
I would look up condition s for ansible
--
You received this message because you are
Having issues extracting UUID
Has anyone in the group successful deployed using the path should it be
/Folder/Data center/vm/folder/template_name
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop
ure there are no
> duplicate templates.
> Or, as the docs you quoted say, use the UUID to identify it.
>
> On Wed, 29 Apr 2020 at 18:58, David Foley wrote:
>
>>
>> Hi All,
>>
>> Trying to Deploy a Virtual Machine on a Cluster within a DataCenter which
>> appears that
Hi All,
Trying to Deploy a Virtual Machine on a Cluster within a DataCenter which
appears that a Template with the Same name is on a different Cluster within
the Same Datacenter:
Looking at the Following from the Doc:
can someone help me with the absolute path ?
I tried the following
It's best to move to an Agent-Based configuration management Tool Such as
SaltStack for Windows if your Machines are been managed by GPO which is
preventing Ansible to Connect.
Or else configure everything before the machine joins the Domain
--
You received this message because you are
You need to do loop on the var
--
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
You need to debug out the message
--
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
Still ident While Fixing The Last Ident Issue you seem to have moved
everything to the Left:
Abhijeet Kasurde Just attached the Correct Way of Doing It;
I would Recommend Reading / Watching Some Ansible Videos before taken on
some Projects: you may end-up doing more harm then good within your
019 OS on bare-metal server not in virtual machine
>
> On Tuesday, April 21, 2020 at 3:22:05 PM UTC+5:30, David Foley wrote:
>>
>> When you say deploy an OS:
>>
>> is this a bare-metal Server or a Virtual Machine on vSphere ?
>>
>> On Tuesday, April 21, 2020
Hi
I currently have the Following Playbook that creates Windows Virtual
Machines:
If you need to do other tasks on the Virtual Machine; I'll recommend
creating a Pipeline within a CI/CD platform:
For Example:
I have a number of Tasks
- Create Machine
- Create AD Object
- Join
When you say deploy an OS:
is this a bare-metal Server or a Virtual Machine on vSphere ?
On Tuesday, April 21, 2020 at 9:16:13 AM UTC+1, Pavan Nr wrote:
>
> Hi All,
>
> any one experimented how to deploy OS using playbook ?
> how to call WDS Server using ansible playbook?
>
> if anyone done ,
I'm using the following Playbook, which is taken the IP Address Entered
from the Jenkins Pipeline:
---
- name: Running Appened To Ansible Host File Playbook
hosts: localhost
connection: local
tasks:
- name: Adding The IP Address of the Newly Created Server to Ansible
Host File
>
> $ sudo apt update
>> $ sudo apt install software-properties-common
>> $ sudo apt-add-repository --yes --update ppa:ansible/ansible
>> $ sudo apt install ansible
>>
>> https://docs.ansible.com/ansible/2.3/intro_installation.html
No you don't need to have the latest Ubuntu 19
>
>>
>>
--
Can you Install Ansible 2.9 on a Test Machine and Retest on this version ?
>>
--
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
Looking at Ansible Reboot a Machine:
- name: Reboot a slow machine that might have lots of updates to apply
reboot:
reboot_timeout: 3600
This will Reboot the System and Test the connection: I wonder if you do a
Timeout of zero: default is 6000 what happens if you set this to zero,
Also
values are not allowed in this context
>
> The error appears to be in '/home/tony/ansiblework/info.yml': line 3,
> column 8, but may
> be elsewhere in the file depending on the exact syntax problem.
>
> The offending line appears to be:
>
> name: get info vm
> hosts: l
r while loading YAML.
>> mapping values are not allowed in this context
>>
>> The error appears to be in '/home/tony/ansiblework/info.yml': line 3,
>> column 8, but may
>> be elsewhere in the file depending on the exact syntax problem.
>>
>> The offending lin
---
- name: get info vm
hosts: localhost
connection: local
gather_facts: false
tasks:
- name: get info about the virtual machine
vmware_guest_info:
hostname: vcnerter
username:
password:
datacenter: DC
validate_certs: False
name: myvm
hosts: localhost
gather_facts: false
tasks:
- vmware_guest_info:
hostname: "{{ vcenter_hostname }}"
username: eu\wavesservice
password: GHb!DW|79Z5i
validate_certs: no
datacenter: Test
name: "{{ VM_Name }}"
schema: "vsphere"
properties:
If you are looking to break your application roles up into some sort of micro
service: I would suggest looking at Ansible plugin for Jenkins and configure a
pipeline with choces, based on these it will callthe roles, or you can have a
pipeline for each role with a downstream from the main
Remote_user I would do connection: local, also what's the folder permission on
that playbook folder?
--
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
It's not refusing the connection, but no harm in trying;
Did you add the key to known hosts file?
https://www.techrepublic.com/article/how-to-easily-add-an-ssh-fingerprint-to-your-knownhosts-file-in-linux/
--
You received this message because you are subscribed to the Google Groups
"Ansible
You could use vault / hash or shadow your password and use that hashed value.
Or you could add you job to a CI/CD pipeline add your credentials into that
pipeline which will be hashed out on Stdout
--
You received this message because you are subscribed to the Google Groups
"Ansible Project"
Is the user part of the local Admin group or has access to login to the machine
--
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
Hi All,
Could do with some Help with this issue:
I am trying to get the Powerstate of a Virtual Machine and power off when
powerstate != poweroff
and looking at a way to copy the copy the Cluster variable to a Text File:
---
- name: Running Create Virtual Machine Playbook
hosts:
Hi Tony:
I think you need to look at powercli for ESXi Configuration:
On Tuesday, April 14, 2020 at 2:28:33 PM UTC+1, Tony Wong wrote:
>
> how do i create a ansible vmware playbook with following
>
>
> - join esx host to domain
> - setup ntp with - 0.pool.ntp.org, 1.pool.ntp.org
> - set advance
Hi Tony,
Looking at the Documentation
https://docs.ansible.com/ansible/latest/modules/vmware_host_module.html
- name: Add ESXi Host to vCenter
vmware_host:
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
datacenter:
I have supplied a completed Playbook for you to use ? what else are you
looking for ?
On Sunday, April 12, 2020 at 11:20:26 PM UTC+1, Tony Wong wrote:
>
> I created a yml file like this. I just need to test it on one vm.
>
> ---
> - hosts all
> gather_facts: false
> connection: local
>
Trythe following code,
I am because the tools moulde is looking for a UUID of the Machine I'm first
doing a Gather_facts on that machine inorder to get the UUID then importing
that as a variable in the next task
:---
- name: Running VMTools Playbook
hosts: localhost
Have you Tested the Powershell Code on a local machine to make sure it's
working ?
You could:
- Create the Powershell Script in Name.ps1
- Copy Name.ps1 to Temp
- Run it and then Remove name.ps1 from Temp Folder
In the past, I had issues with running Powershell Scripts using
Can you test on a Different Linux OS, like Ubuntu and a Different Network
vSwitch
On Thursday, April 9, 2020 at 4:37:26 PM UTC+1, AJ wrote:
>
> Nope it's unreliable. Ran it a few more times, it completely worked a
> couple times, then the 3rd time it worked on the first VM and failed on the
>
If i can remember Correctly: I had the Same issue with Static IP not taken
affect, as my AutoLogin wasn't working, Once i fixed the Password on the
template, Static IP Address were taken effect.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project"
>
> I'm using Ansible to Deploy Windows machines: having no issues, out side
> of your Code: Outside of your code I'm not using both of the following:
>
>- start_connected: True
>-wait_for_ip_address: yes
>
> Not sure if Static IP Address settings need to have login set to use
Hi Bhanu,
Are you trying to Deploy From Template but to Increase the Disk , if so a
simple
vm_disk:
disk1:
size_gb: 10
type: thin
datastore: storage001
What is not supported is the decrease the disk size
--
You received this message because you are subscribed
>
> Hi Gobi,
I was using that above, but it outputs all information,
I was trying to only output the guest_name with the with_item loop
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving
>
> Hi Gobi
>
that outputs the first on the Json List, how would i do a loop ?
i Tried with_items
- debug:
msg: "{{ item.tags }}"
with_items:
- "{{ vm_info.virtual_machines.guest_name }}"
--
You received this message because you are subscribed to the Google Groups
Hi All,
Trying to Output only the Virtual Machine Name: but having issues with the
Json output
---
- name: Running Create Virtual Machine Playbook
hosts: localhost
gather_facts: false
connection: local
tasks:
- name: Get VMs
vmware_vm_info:
Hi,
I'm trying to roll out Microsoft DSC Using the following Playbook to
install the application
---
- name:
hosts: win
gather_facts: false
#connection: win
tasks:
- name: Install DSC
win_shell: 'Set-DscLocalConfigurationManager -Path
Did you Configure the WinRM ? for CredSSP ?
runonce:
- powershell.exe -ExecutionPolicy Unrestricted wget
https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1
-OutFile C:\Windows\Temp\ConfigureRemotingForAnsible.ps1
On Thursday, March 5, 2020 at 8:48:12 PM UTC, Kai Stian Olstad wrote:
>
> On 05.03.2020 15:52, David Foley wrote:
> > Have the Following Playbook Which Returns the following
> >
> > ok: [localhost] => {
> > "mdb.json": [
>
> The [ is tel
-
- hosts: localhost
gather_facts: false
tasks:
- name: Getting Mac Address
uri:
url: http://.com
return_content: yes
register: mdb
- debug:
msg: "{{ mdb.json }}"
--
You received this message because you are subscribed to the Google Groups
"Ansible
When i do Both
"{{ mdb.json.mac-address }}"
"{{ mdb.json.split(':')[1:6] | join(':') }}"
It returns
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an
undefined variable. The error was: 'list object' has no attribute
'mac'\n\nThe error appears to be in
Have the Following Playbook Which Returns the following
ok: [localhost] => {
"mdb.json": [
{
"mac-address": "xx:xx:xx:xx:xx"
}
]
}
--
- hosts: localhost
gather_facts: false
tasks:
- name: Getting Mac Address
uri: url="http://.com?field=mac-address;
So i have updated the Script as follows:
> ---
> - hosts: localhost
> gather_facts: false
> tasks:
> - vmware_guest_info:
> hostname:
> username:
> password:
> validate_certs: no
> datacenter: Test
> name: Win10
> schema: "vsphere"
>
>
> HI Davide
>
When i use
when: vminfo["runtime.powerState"] == "poweredOn"
Im Getting
fatal: [localhost]: FAILED! => {"msg": "The conditional check
'vminfo[\"runtime.powerState\"] == \"poweredOn\"' failed. The error was:
error while evaluating conditional
Hi,
Can Someone help with a IF Else Statment within Ansible.
If i Run a a GetStatus Playbook the Register: vminfo outputs the Following:
ok: [localhost] => {
"vminfo": {
"changed": false,
"failed": false,
"instance": {
"runtime": {
Did you check your Firewall to make sure icmp is opened or allowed ?
i'll create a simple playbook create new folder on the windows host for the
connection i'll use ssh instead of WINRM since you have ssh installed
--
You received this message because you are subscribed to the Google Groups
Ok I'm using just / as the folder seems to be bypassing that now
but not sure what could be causing the following:: fatal: [localhost ->
localhost]: FAILED! => {"changed": false, "msg": "Failed to create a
virtual machine : Unable to access the virtual machine configuration:
Unable to access
>
> When i Enter the virtualMachine Name _ Folder I'm getting the following
>
No Folder /TESTMACHINE match in search path..
--
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
Ansible playbook fails to deploy Virtual Machine: Can't Find Folder
How can I deploy a Virtual machine without any Folders within the Cluster ?
---
- name: Running Create Virtual Machine Playbook
hosts: localhost
gather_facts: false
connection: local
tasks:
-
74 matches
Mail list logo