aem_design.aem_content

Ansible 角色:AEM 内容

构建状态

在 AEM 中对内容执行操作。

此角色是 AEM.Design 的一部分。

需求

无。

内容操作

名称 aem_content_action 示例
设置权限 set_permission - {
  user_or_group_name: 'exporter',
  path: '/',
  permissions: 'read:true,modify:false,create:false,delete:false,acl_read:false,acl_edit:false,replicate:false'
}
设置属性 set_property - {
  path: '/',
  property_name: 'sling:target',
  property_value: '/projects'
}

角色变量

可用的变量如下所示,并附有默认值(请参见 defaults/main.yml):

名称 必需 默认值 备注
aem_port 4502 aem 服务端口
aem_host localhost aem 服务主机
aem_username admin
aem_password admin
wait_delay 1 重试之间等待多长时间
wait_timeout 1 在终止之前等待多长时间
wait_retries 1 重试等待的次数
aem_content_action 要执行的内容操作
aem_content_list 用于执行操作的内容列表

依赖关系

无。

示例剧本

- hosts: all
  tasks:
    - name: 设置权限
      include_role:
        name: "{{ role_name }}"
      vars:
        aem_port: "{{ test_aem_port }}"
        aem_host: "{{ dockerhost_ip.stdout }}"
        aem_content_action: "set_permission"
        aem_content_list:
          - {
            user_or_group_name: 'everyone',
            path: '/libs/granite/dispatcher/content/vanityUrls',
            permissions: 'read:true'
          }
        debug_hide: false
    - name: 设置属性
      include_role:
        name: "{{ role_name }}"
      vars:
        aem_port: "{{ test_aem_port }}"
        aem_host: "{{ dockerhost_ip.stdout }}"
        aem_content_action: "set_property"
        aem_content_list:
          - {
            path: '/libs/granite/dispatcher/content/vanityUrls',
            property_name: 'test',
            property_value: "{{ test_aem_property_content }}"
          }
        debug_hide: false

许可

Apache 2.0

作者信息

此角色由 Max Barrass 创建。

关于项目

Perform actions on content in AEM.

安装
ansible-galaxy install aem_design.aem_content
许可证
Unknown
下载
75
拥有者
Designing AEM Experience End-To-End.