diodonfrost.amazon_codedeploy

ansible-role-amazon-codedeploy

molecule Ansible Galaxy

该角色用于在目标主机上安装 amazon-ssm。

需求

该角色是使用 Ansible 2.5 开发的,向后兼容性不保证。 使用 ansible-galaxy install diodonfrost.amazon_codedeploy 在你的系统上安装该角色。

支持的平台:

- name: EL
  versions:
    - 8
    - 7
- name: Fedora
  versions:
    - 29
    - 28
    - 27
    - 26
- name: Debian
  versions:
    - buster
    - stretch
    - jessie
- name: Ubuntu
  versions:
    - disco dingo
    - bionic
    - xenial
    - trusty
- name: Amazon
  versions:
    - 2017.12
    - 2016.03
    - 2013.09

角色变量

该角色没有变量

---
# ansible-role-amazon-codedeploy 的默认文件

# 下载 CodeDeploy 安装脚本的 AWS 区域
aws_region: eu-west-1

# 下载 CodeDeploy 安装脚本的完整 URL
codedeploy_install_script_url: "{{ default_codedeploy_install_script_url }}"

# 存储 codedeploy 代理安装脚本的位置
codedeploy_install_script_dest: "{{ default_codedeploy_install_script_dest }}"

依赖

示例剧本

这是一个在本地主机上部署 Ansible Galaxy 角色并安装最新的 amazon-ssm 版本的示例剧本文件。

---
- hosts: localhost
  become: true
  roles:
    - role: diodonfrost.amazon_codedeploy

更改下载 CodeDeploy 安装脚本的 AWS 区域

---
- hosts: localhost
  become: true
  roles:
    - role: diodonfrost.amazon_codedeploy
      vars:
        aws_region: eu-west-3

本地测试

该项目使用 Molecule 来帮助开发和测试。

要进行开发或测试,你需要安装以下内容:

使用 Docker 进行测试

# 在 CentOS 8 上测试角色
image=ansible-centos:8 molecule test

# 在 Ubuntu 16.04 上测试角色
image=ansible-ubuntu:16.04 molecule test

使用 Virtualbox 进行测试

# 在 Windows 上测试角色
molecule test -s windows

许可证

Apache 2

作者信息

该角色由 diodonfrost 于 2020 年创建。

关于项目

Ansible role for manage AWS CodeDeploy agent

安装
ansible-galaxy install diodonfrost.amazon_codedeploy
许可证
apache-2.0
下载
37k
拥有者