1
0
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity Security Code Quality
2025-09-26 20:19:00 +08:00
2025-09-26 20:19:00 +08:00
2025-09-25 10:22:17 +08:00
2025-09-25 10:23:08 +08:00
2025-09-25 11:08:07 +08:00

cosmos-plan-crm-ansible-deploy

Ansible Playbook for deployment

Installation

  1. Make sure podman, Playbook Ansible and containers.podman is installed
    dnf install podman
    dnf install ansible
    ansible-galaxy collection install containers.podman
    
  2. Install AWS CLI as a user(Not as a root)
    unzip awscliv2.zip
    curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
    ./aws/install -i ~/.local/aws-cli -b ~/.local/bin
    

Setup Environment

Using quadlets to run container as service in systemd(rootless)

  1. Allows the user's systemd services to continue running even after they have logged out of all sessions. Trigger command from root
    loginctl enable-linger {username}
    
  2. Check subid and subgid(root).
    cat /etc/subuid
    cat /etc/subgid
    
  3. Add if not exists
    nano /etc/subuid
    
  4. Then
    user:100000:65536
    
  5. Check if $HOME/.config/containers/systemd exits. Else, create folder
    $HOME/.config/containers/systemd
    

Setup Ansible Playbook

  1. Navigate to cosmos-plan-crm-ansible-deploy folder
  2. Create containers folder
  3. Create crm-server.container & crm-client.container inside containers folder
  4. Create env-file folder
  5. Copy .env from crm-server/src/Web.Api/.env to env-file folder
  6. Create vars folder
  7. Create aws.yml in vars folder by command
    ansible-vault create aws.yml --ask-vault-pass
    
  8. Save as below
    aws_access_key: 
    aws_secret_key: 
    aws_region: 
    aws_account_id: 
    

Run Ansible Playbook

  1. Navigate to cosmos-plan-crm-ansible-deploy folder
  2. Run command in terminal
    ansible-playbook playbook.yml --ask-vault-pass
    
  3. Key in password and let process finish
Description
Ansible Playbook for deployment
Readme 36 KiB
Languages
Pod 100%