stormcorgi / iac-learn

Learning Infrastructure as a Code
0 stars 0 forks source link

Install Ansible #3

Closed stormcorgi closed 1 year ago

stormcorgi commented 1 year ago

Require Python. Use Stable Version of Python and Ansible for learning.

stormcorgi commented 1 year ago
  1. brew install pyenv ~ ❯❯❯ pyenv --version pyenv 2.3.14 ~ ❯❯❯ pyenv versions system

    • 3.7.7 (set by /Users/****/.pyenv/version)
  2. pyenv install 3.11.2 this is latest stable release Python. so Ansible Core version would be 2.14.

  3. pyenv global 3.11.2

  4. python3 -m pip install --user ansible

ansible [core 2.14.3]
  config file = None
  configured module search path = ['/Users/****/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/****/.local/lib/python3.11/site-packages/ansible
  ansible collection location = /Users/****/.ansible/collections:/usr/share/ansible/collections
  executable location = /Users/****/.local/bin/ansible
  python version = 3.11.2 (main, Mar  4 2023, 15:29:14) [Clang 14.0.0 (clang-1400.0.29.202)] (/Users/****/.pyenv/versions/3.11.2/bin/python3)
  jinja version = 3.1.2
  libyaml = True
stormcorgi commented 1 year ago

Done.