# HG changeset patch # User kono # Date 1513491161 -32400 # Node ID 93892172f7fb7b8d5787a60da76e1b3378eae67a # Parent db07c91fb677bce15271581fc03adc207cbc1a62 add comment diff -r db07c91fb677 -r 93892172f7fb main.yml --- a/main.yml Sun Dec 17 13:39:42 2017 +0900 +++ b/main.yml Sun Dec 17 15:12:41 2017 +0900 @@ -7,10 +7,10 @@ # # rsync -av -e 'ssh -p 2222' ~/.ssh/id_rsa.pub xxx@localhost:.ssh/authorized_keys # screen -L ansible-playbook -i hosts main.yml --ask-become-pass - +# ssh localhost -p 2222 -l root 'cd /usr/src/kernels ; tar czf - fedora' | dd of=fedora26-kernel.tgz - hosts: all - remote_user: one + remote_user: xxxxx become: yes become_method: sudo tasks: @@ -31,6 +31,8 @@ chdir: /usr/src/ creates: /usr/src/kernel +# we need not to this as root +# # this should be cd /usr/src/kernel ; git checkout - name: git clone kernel git: >