Hi
As a quick starting step you can add the following to your inventory so
that Ansible works with untrusted certificates.
ansible_winrm_server_cert_validation: ignore
If you want to actually connect with HTTPS and work with the trust
mechanism without ignoring it you would need to import the
You can install an rpm by it's file name, but you cannot uninstall it
by its file name.
You have to use the actual package name, so in this case probably "jdk1.8.0".
This isn't a limitation of ansible, but merely the way yum works (and
apt-get too, for that matter)
Dick
On 30 August 2017 at 22:1
My guess is that is because you are also replacing Windows Management
Framework, which includes WinRM, which is the mechanism used to communicate
with the windows machine. If the WinRM service gets restarted during the
upgrade I can imagine this will fail.
You might be able to get around this
I have a playbook that includes lots of other playbooks, eg
# site.yml
- include: mesos-master.yml
- include: mesos-slave.yml
Inside mesos-master.yml for example, I have play that looks like
- name: Configure logging
hosts: mesos_master
become: yes
tags: [logging]
roles:
- role: log
win_feature also can take a comma-separated list of features to install.
This is going to be MUCH faster than using with_items as the features can
all be tackled in a single batch.
There's an example of a comma-separated list in the documentation
here: http://docs.ansible.com/ansible/latest/wi
Its odd that you are getting the insecure request warnings - I am wondering
if you are running ansible from a folder with a different ansible.cfg in it
perhaps, as the ansible_winrm_server_cert_validation: ignore doesn't seem
to be taking effect.
On Wednesday, August 30, 2017 at 10:55:31 PM UTC
Please share your playbook or command line
On Wednesday, August 30, 2017 at 11:23:35 PM UTC+1, Thijn Bukkems wrote:
>
> Also tried to stop or start the print spooler just to test another
> command.. This is what's in the log
>
> 2017-08-30 17:19:53,300 urllib3.connectionpool Starting new HTTPS
>
Thank you for your suggestion but it is not even installing dotNet
framework 4.5v.
On Thursday, August 31, 2017 at 2:46:54 PM UTC+5:30, J Hawkesworth wrote:
>
> My guess is that is because you are also replacing Windows Management
> Framework, which includes WinRM, which is the mechanism used to
- name: Windows Powershell Upgrade
hosts: tag_AnsibleCLI_windows
tasks:
- name: Install and upgrade powershell
win_shell: |
New-Variable -Name "file" -Value
"http://download.microsoft.com/download/b/a/4/ba4a7e71-2906-4b2d-a0e1-80cf16844f5f/dotnetfx45_full_x86_x64.exe";
Here is my playbook to install dotNet framework 4.5
- name: Windows Powershell Upgrade
hosts: tag_AnsibleCLI_windows
tasks:
- name: Install and upgrade powershell
win_shell: |
New-Variable -Name "file" -Value
"http://download.microsoft.com/download/b/a/4/ba4a7e71-2906-4b2d-a
The folder structure looks like this
/etc/ansible:
ansible.cfg
inventory.yml
/etc/ansible/group_vars/:
web.yml
I haven't configured the ansible.cfg in /etc/ansible regarding the cert
validation.
Op donderdag 31 augustus 2017 02:26:34 UTC-7 schreef J Hawkesworth:
>
> Its odd that you are getti
If this is the case, this feels like a windows bug to me. WinRM is
intended for administration, so it should really not be tied to the
configuration of IIS, which is typically there to provide application
services (not administration).
As for a workaround I can only think of lifting the IIS li
command line: ansible web -m win_service -a "name=spooler state=stopped"
Op donderdag 31 augustus 2017 02:27:02 UTC-7 schreef J Hawkesworth:
>
> Please share your playbook or command line
>
> On Wednesday, August 30, 2017 at 11:23:35 PM UTC+1, Thijn Bukkems wrote:
>>
>> Also tried to stop or start
Use windows fqdn name in place of IPaddress then it will work
On Wednesday, August 30, 2017 at 10:21:48 PM UTC+5:30, Thijn Bukkems wrote:
>
> Hi all,
>
> Just getting started with Ansible as proof of concept but already stuck
> and not sure how to make it work. I have a CentOS7 box that is not o
Nice.
A lookup plugin seems to make sense to me.
I suppose another possibility might be keeping your inventory in Jerakia in
which case a dynamic inventory script might be another entry point. There
is work going on at the moment to make inventory plugins so would be worth
asking on the deve
[WARNING]: FATAL ERROR DURING FILE TRANSFER: Traceback (most recent call
last): File "/usr/lib/python2.7/site-
packages/ansible/plugins/connection/winrm.py", line 267, in _winrm_exec
self._winrm_send_input(self.protocol, self.shell_id, command_id, data,
eof=is_last) File "/usr/lib/python2.7/sit
Well spotted! Yeah, use hostnames. If you end up switching over to using
kerberos hostnames are essential (as is fully functioning DNS lookups (both
hostname -> ip and ip -> hostname).
Jon
On Thursday, August 31, 2017 at 10:51:01 AM UTC+1, sohail.p...@gmail.com
wrote:
>
>
> Use windows fqdn n
Thanks guys, I changed to fqdn shortly after that original post. Strangely
enough now only getting access denied with 1 machine even though the winrm
settings and user accounts on both are exactly the same. they even reside
in the same subnet. very strange!
Op donderdag 31 augustus 2017 02:54:2
I have errors Could You help me :D
- hosts: "{{ variable_hosts | default('all') }}"
remote_user: ansible
become: yes
tasks:
- include_vars: users.yml
- name: Make sure we have a {{ item.groupname }} group
group:
name:{{item.groupname}} with_items: '{{groups}}'
Sorry to revive this old thread but I (and many others) got the same
problem which seems not to be addressed yet. My original post was
at
https://stackoverflow.com/questions/45983636/how-to-always-run-some-ansible-roles-after-previous-failures
If you you wrote is still true (ansible 2.3.x), it
On torsdag 31. august 2017 16.17.06 CEST Konrad Kosewski wrote:
> I have errors Could You help me :D
>
>
> - hosts: "{{ variable_hosts | default('all') }}"
> remote_user: ansible
> become: yes
> tasks:
> - include_vars: users.yml
> - name: Make sure we have a {{ item.groupname }} gr
Thanks to everyone for the feedback. This was all very useful!
-Adam
On Tuesday, August 29, 2017 at 8:44:12 AM UTC-4, Dick Davies wrote:
>
> This is currently an opinion argument, and you need to turn it into a
> numbers argument. It's the only way to get past egos.
>
> If a team deliver wha
I have this text file and I was trying to delete some text that I had just
added. Not sure how I would go about deleting
1) The entire text tree and the wrappers #BEGIN ANSIBLE MANAGED BLOCK
2) Just deleting the text tree
Can anyone explain? Thanks
The delete functionality is not functioning a
I have the following scenario, and I just want to see if I understand
correctly what is happening (hopefully after posting this my alignment
doesn't get all messed up):
main.yml < Gathers some variables... has some
includes based on those variables
/
On torsdag 31. august 2017 18.24.14 CEST Anfield wrote:
> textfile -
>
> giraffe
> This is my text to add
> Noo
> penguin
> robot
>
> #BEGIN ANSIBLE MANAGED BLOCK
> tree
> #BEGIN ANSIBLE MANAGED BLOCK
>
>
> Tried the following playbook and it just deleted the last wrapper
>
> Playb
I think I answered my last question assuming things execute as I stated
above. I just include the common.yml at the bottom of the main.yml and it
will be executed after true|false.yml
Correct me if I am wrong.
--
You received this message because you are subscribed to the Google Groups
Please share the playbook that is causing this error, and also the
group_vars you are using.
You might need to change some of the timeouts - try something like the
following.
ansible_winrm_operation_timeout_sec=60ansible_winrm_read_timeout_sec=70
Is the server busy when this happens? Can you
What are you trying that produces the access denied message?
On Thursday, August 31, 2017 at 11:20:25 AM UTC+1, Thijn Bukkems wrote:
>
> Thanks guys, I changed to fqdn shortly after that original post. Strangely
> enough now only getting access denied with 1 machine even though the winrm
> set
Powershell itself is completely dependent on .net so I guess this is not
surprising either.
I'd suggest trying win_scheduled_task module.
If you are going to the trouble then it might be worth going straight to
.net 4.7 - if so be aware of this (although you are on S2008SP2 so probably
not aff
The example you gave to install .net 4.5 is an MSU file that is installed
with Windows update. There is no easy way to install update files but I've
been able to install .net 4.5 using the offline installer that is packages
as an exe. The link for it is
here https://www.microsoft.com/en-au/down
There is an IIS extension that can be used when IIS is intercepting the
WinRM
traffice https://technet.microsoft.com/en-us/library/dd759166(v=ws.11).aspx.
I've never had to deal with this situation before so can't help much
further sorry.
--
You received this message because you are subscribe
That installer sounds like the way to go. The latest devel branch has made
some changes with become so it works with NTLM and Kerberos authentication
but going that route probably isn't recommended as you would need to know
the credentials for all the accounts you want to install slack on.
--
Despite setting cert validation as ignore and false, I still get the
warning message. Any ideas? thanks
Windows OS: Windows10 64bit 1703
Linux Controller: RHEL 7.4
# group_vars/windows.yml
ansible_user: Administrator
ansible_password:
ansible_connection: winrm
ansible_winrm_server_cer
Hi Team,
I am new for Ansible. I don't want to execute YAML file. My requirement is
to implement all necessary ansible keywods(like hosts,vars,tasks) in my
python scripts to install any software on remote server.
Regards,
Manish
--
You received this message because you are subscribed to the G
Thank You very much, but i still have problems with my first project:
- hosts: "{{ variable_hosts | default('all') }}"
remote_user: ansible
become: yes
tasks:
- include_vars: users.yml
- name: Make sure we have a group existing
group:
name: "{{item.groupname}}"
35 matches
Mail list logo