Skip to content

Instantly share code, notes, and snippets.

@heiwa4126
Created March 24, 2021 07:18
Show Gist options
  • Save heiwa4126/b17f0b4cd7befec9553ba55a9f309474 to your computer and use it in GitHub Desktop.
Save heiwa4126/b17f0b4cd7befec9553ba55a9f309474 to your computer and use it in GitHub Desktop.
RHEL7のrootローカルにpython2用のpexpectを入れるansible。[ansible.builtin.expect](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/expect_module.html) 用。2020-03時点ではpexpect==4.8.0が入る
- name: install pexpect to root locally on RHEL7
hosts: linux
become: true
gather_facts: false
tasks:
- name: install pip2 package for python2
yum:
name: python2-pip # pip2.7 version 8.1.2
state: latest
# - name: install pip2 locally
# pip:
# name: pip >= 20.0
# extra_args: --user
# not work at 2021-03
- name: install pexpect locally
pip:
name: pexpect >= 3.3
extra_args: --user --upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment