Commit d3064773 authored by nanahira's avatar nanahira

changes

parent 2b4c122f
......@@ -7,8 +7,8 @@
copy:
src: '../chnroute-reverse/chnroute-reverse.txt'
dest: '{{ansible_user_dir}}/chnroute-reverse.txt'
owner: '{{ansible_ssh_user}}'
group: '{{ansible_ssh_user}}'
owner: '{{ansible_user_id}}'
group: '{{ansible_user_id}}'
mode: 0644
notify: reload_list
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 @@
autoremove: true
purge: true
state: absent
- name: install ansible base
- name: some apt packages
become: true
pip:
name: ansible-base
state: latest
apt:
update_cache: true
name: ocserv,apache2-utils
- name: install pip packages
become: true
pip:
name: ansible,awscli
name: ansible==2.9,awscli
state: latest
- name: ansible
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