| | |
| | | name: "bastion-opentlc-ipa" |
| | | when: install_ipa_client|bool |
| | | |
| | | - name: Step dev tools |
| | | hosts: bastions |
| | | ignore_errors: true |
| | | gather_facts: false |
| | | become: true |
| | | tags: |
| | | - devops_tools |
| | | tasks: |
| | | - name: Add epel-release repo |
| | | yum: |
| | | name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm |
| | | |
| | | - name: vim8 repo exists? |
| | | stat: |
| | | path: /etc/yum.repos.d/lantw44-vim8-epel-7.repo |
| | | register: vim8_repo |
| | | |
| | | - name: install Vim8 repo |
| | | get_url: |
| | | url: https://copr.fedorainfracloud.org/coprs/lantw44/vim-latest/repo/epel-7/lantw44-vim-latest-epel-7.repo |
| | | dest: /etc/yum.repos.d/lantw44-vim-latest-epel-7.repo |
| | | when: not vim8_repo.stat.exists |
| | | |
| | | - name: install vim8 packages |
| | | yum: |
| | | name: "{{ packages }}" |
| | | state: latest |
| | | update_cache: true |
| | | vars: |
| | | packages: |
| | | - vim-minimal |
| | | - vim-common |
| | | - vim-enhanced |
| | | - yamllint |
| | | |
| | | - name: create vimrc path |
| | | file: |
| | | path: /root/.vim |
| | | state: directory |
| | | |
| | | - name: get Judds vimrc |
| | | get_url: |
| | | url: https://raw.githubusercontent.com/newgoliath/vim/master/home/.vim/vimrc |
| | | dest: /root/.vim/vimrc2 |
| | | backup: true |
| | | |
| | | - name: prep vim plugins |
| | | shell: | |
| | | git clone https://github.com/VundleVim/Vundle.vim.git \ |
| | | ~/.vim/bundle/Vundle.vim |
| | | vim +PluginInstall +qall &>/dev/null |
| | | # tmux -c 'vim "+Tmuxline airline" "+qall"' |
| | | #tmux -c 'vim "+TmuxlineSnapshot .vim/tmux.line" "+qall"' |
| | | |
| | | - name: download tmux latest |
| | | get_url: |
| | | url: http://admin.na.shared.opentlc.com/labs/ocp_advanced_deployment/tmux |
| | | dest: /usr/local/bin/tmux |
| | | |
| | | - name: Install mosh |
| | | yum: |
| | | name: mosh |
| | | |
| | | - name: Open UDP Ports 60001 - 60010 for Mosh |
| | | iptables: |
| | | action: insert |
| | | protocol: udp |
| | | destination_port: "60001:600059" |
| | | state: present |
| | | chain: INPUT |
| | | jump: ACCEPT |
| | | |
| | | - name: Open iptables Mosh firewall ports for future sessions |
| | | lineinfile: |
| | | insertbefore: "-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT" |
| | | state: present |
| | | dest: /etc/sysconfig/iptables |
| | | line: "-A INPUT -p udp -m multiport --dports 60001:60005 -j ACCEPT" |
| | | |
| | | - name: PostSoftware flight-check |
| | | hosts: localhost |