Hi
Two things that I miss in Ansible when compared to shell scripting is easy
'grep' and 'sed'. That was easy to do in shell!
My case is very simple. I have a file with lot of lines (sample below) and
the line mentioned below comment has to be checked for its presence.
After a week of studying Ansible I came to the answer myself.
'The right Ansible way' seems to do all the 'procedural/algorithmic' part
in Action Plugins
(https://www.ansible.com/blog/how-to-extend-ansible-through-plugins) It is
not hard to implement a plugin that returns a list of new
Well I am back to square one with the VM Modules again. I am not sure if I
am doing some wrong with my code is anybody else getting these mods to work
with there code?? if please let me know as I would love to have a one on
one and share my code so I could stop banging my head against the wall.
Hello,
I have followed all the steps in this tutorial:
http://www.hurryupandwait.io/blog/certificate-password-less-based-authentication-in-winrm
to setup a passwordless ssl based authentication between a centos 7 local
VM (where ansible is installed) and a Windows 10 VM and it works perfectly.
Is there anyone out there that have used ansible as a hardening tool to
harden hypervisors like ESXi, KVM and Windows Server? If so, is there any
playbook available or tutorial to use ansible to harden hypervisors? After
trying to research for a tutorial/playbook on this topic for a while, I
Hi all,
I want to write the code like this, is it possible? or is there any better
way to write?
---
- become: true
become_user: wsadmin
hosts: ATST-ESBDMGR
tasks:
-
ping: ~
-
name: "Displaying Hostname for DMGR Profile Server"
register: hostnamefordmgr
ansible_user=.\test
is an unusual looking username.
Also it looks like you are connecting is '.\medcon' when you run ansible
command.
"the specified credentials were rejected by the server" usually means that
the supplied username and password don't match what windows is expecting.
Could
Hello,
I try to setup a simple Ansible inventory for Windows server using basic
authentication. Both my machines are in Azure. Windows server is not in
domain and has a user who is a member in Administrators and Remote
Management groups.
HTTPS between machines work:
$ nc -z -w1
I wanted to go with Ansible Galaxy at first, but I tried it locally and
ansible-container was failing to start the django app because the image
doesn't exist. Also the process of *Powering up Ansible Galaxy *is not
fully documented :) all I did was look how you guys start it in TravisCI.
On
Yes and no. I have already put some of the variables that are contained in
the hosts files into group_vars/all, but since I am using a directory for
inventory it is reading all the hosts files and so some environment host
files I have not yet had the chance to migrate to group_vars/envname.yml.
I'm not seeing the behaviour you describe - maybe my playbook isn't doing
the same things as yours though?
# playbook:
$ cat trondpath.yml
---
- name: test trond observed strange path behaviour
hosts: TENSY
vars:
logfiles_path: "F:\\Logs"
connection: winrm
gather_facts: false
11 matches
Mail list logo