Skip to content

Instantly share code, notes, and snippets.

@sshnaidm
Created April 28, 2020 17:11
Show Gist options
  • Save sshnaidm/b0b1781b663831dd6035a16209e8a760 to your computer and use it in GitHub Desktop.
Save sshnaidm/b0b1781b663831dd6035a16209e8a760 to your computer and use it in GitHub Desktop.
tripleo-container-image playbook.yml
# Run this command to make tripleo image
# sudo buildah --name mycontainer from centos:8
# sudo ansible-playbook -i mycontainer, -c buildah playbook.yml
# sudo buildah commit --cmd '/bin/bash' mycontainer centos-tripleo-image
---
- hosts: mycontainer
connection: buildah
tasks:
- name: Install pip
package:
name: python3-pip
- name: Install tripleo-repos
pip:
name: tripleo-repos
extra_args: --user
- name: Configure master dev repos
shell: ~/.local/bin/tripleo-repos -b master -o /etc/yum.repos.d -d centos8 current-tripleo-dev
- name: Install TripleO client
package:
name: python*-tripleoclient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment