--- - hosts: all tasks: - name: "install epel repo" # for htop etc. yum: name: epel-release state: present - name: "install tools" yum: name: [ vim-enhanced, htop, screen, bind-utils, nmap-ncat, net-tools ] state: present - name: "screenrc native scrolling in tmux" copy: content: "termcapinfo xterm* ti@:te@\ntermcapinfo screen* ti@:te@\n" dest: "{{item}}" with_items: - "~{{unpriv_user}}/.screenrc" - "~root/.screenrc" - name: "install ssh-key" authorized_key: user: "{{cfg_unpriv_user}}" key: "{{cfg_ssh_key}}" state: present