Commit d3064773 authored by nanahira's avatar nanahira

changes

parent 2b4c122f
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
copy: copy:
src: '../chnroute-reverse/chnroute-reverse.txt' src: '../chnroute-reverse/chnroute-reverse.txt'
dest: '{{ansible_user_dir}}/chnroute-reverse.txt' dest: '{{ansible_user_dir}}/chnroute-reverse.txt'
owner: '{{ansible_ssh_user}}' owner: '{{ansible_user_id}}'
group: '{{ansible_ssh_user}}' group: '{{ansible_user_id}}'
mode: 0644 mode: 0644
notify: reload_list notify: reload_list
handlers: handlers:
......
---
- hosts: test-nvidia
remote_user: root
tasks:
- name: test nvidia
include_tasks: ./roles/init/tasks/nvidia.yml
---
- hosts: localhost
remote_user: nanahira
tasks:
- name: cat /etc/passwd
shell: cat /etc/passwdf || true
register: test_reg
- name: test
debug:
msg: '{{test_reg}}'
---
- hosts: localhost
remote_user: nanahira
tasks:
- name: test
debug:
msg: '{{ ansible_dns | to_json }}'
- name: test
debug:
msg: '{{ ansible_dns | to_yaml }}'
...@@ -21,15 +21,15 @@ ...@@ -21,15 +21,15 @@
autoremove: true autoremove: true
purge: true purge: true
state: absent state: absent
- name: install ansible base - name: some apt packages
become: true become: true
pip: apt:
name: ansible-base update_cache: true
state: latest name: ocserv,apache2-utils
- name: install pip packages - name: install pip packages
become: true become: true
pip: pip:
name: ansible,awscli name: ansible==2.9,awscli
state: latest state: latest
- name: ansible - name: ansible
synchronize: synchronize:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment