On Mon, Aug 17, 2020 at 4:58 PM giob...@gmail.com <giobax...@gmail.com> wrote:
>
> Sorry i made a mistake......i used the command
>
> ansible-playbook path_to_my_playbook.yml
>
> and in the hosts files i added the hostname and then the IP address of the 
> remote Computer where i want apply the configurations. But does not 
> work....:-(
>

Below are real files of mine. Only difference is that I changed the hostname:

file: hosts
[test]
testcentos
testfedora

File: host_vars/testcentos.yml
---
# File: host_vars/testcentos.yml
# OS: CentOS (for now? Make this so it does not care)

ansible_host: testfedora.example.com
ansible_port: 2022
ansible_ssh_private_key_file: ~/.ssh/ansible-test
ansible_user: root

File: test.yml
---
# file: test.yml
#

- hosts:
    - test

  vars:
    # - some_var: "roles/test/handlers/duck.yml"
    # - some_var: "wrongability"
    - user_test: "Yes"
    - file_test: "Maybe"
    - string_test: true

  roles:
  - test

>
> Il giorno lunedì 17 agosto 2020 alle 20:31:48 UTC+2 raub...@gmail.com ha 
> scritto:
>>
>> On Mon, Aug 17, 2020 at 2:16 PM giovanni baldi <giob...@gmail.com> wrote:
>> >
>> >
>> > I'm new of the Ansible World, and for the moment i used just to hardening 
>> > some linux systems using every time the command locally:
>> >
>> >> ansible path_to_my_playbook.yml
>> >
>> >
>> > There is a way to run this commant to a remote computer? i tried adding a 
>> > remote computer in the hosts files but or i make a mistake or it does not 
>> > work
>> >
>> Try
>>
>> ansible-playbook path_to_my_playbook.yml
>>
>> instead
>>
>> > could you recommend some links that can help me? as far i will have time i 
>> > will start more in details how ansible works......but now i have to hader 
>> > lots of Linux systems :-|
>> >
>> > A.
>> >
>> >
>> >
>> >
>> > --
>> > 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-proje...@googlegroups.com.
>> > To view this discussion on the web visit 
>> > https://groups.google.com/d/msgid/ansible-project/51c0d17d-3d54-4c28-993f-5ee89c7fba9bo%40googlegroups.com.
>
> --
> 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 web visit 
> https://groups.google.com/d/msgid/ansible-project/9e168278-a679-4d5f-ba92-84680d4c0f1cn%40googlegroups.com.

-- 
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 web visit 
https://groups.google.com/d/msgid/ansible-project/CAHEKYV7J%2BGCsSr%3DSA1WFw2tSSR7HPiC8b5D6N_t%3DYYa9a%3DQF2w%40mail.gmail.com.

Reply via email to