Mercurial > hg > Ansible > fedora_kernel_build
changeset 6:93892172f7fb
add comment
author | kono |
---|---|
date | Sun, 17 Dec 2017 15:12:41 +0900 |
parents | db07c91fb677 |
children | 4eaf5c6e126f |
files | main.yml |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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: >