diff --git a/doc/source/index.rst b/doc/source/index.rst index b835da3b..2657c518 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -23,9 +23,9 @@ Example Playbook Tags ^^^^ -This role supports two tags: ``swift-install`` and ``swift-config`` +This role supports two tags: ``swift-install`` and ``swift-config``. -The ``swift-install`` tag can be used to install and upgrade. +The ``swift-install`` tag can be used to install the software. The ``swift-config`` tag can be used to maintain configuration of the -service. +service, and do runtime operations. diff --git a/tasks/main.yml b/tasks/main.yml index 57ad8a12..37b118cd 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -71,7 +71,6 @@ - inventory_hostname in groups['swift_hosts'] - swift_do_setup | bool tags: - - swift-install - swift-config - include: swift_proxy_hosts.yml @@ -80,11 +79,10 @@ - swift_do_setup | bool tags: - swift-config - - swift-install - include: swift_init_common.yml tags: - - swift-install + - swift-config - include: swift_service_setup.yml when: @@ -92,7 +90,7 @@ - '"keystoneauth" in swift_middleware_list' - swift_do_setup | bool tags: - - swift-install + - swift-config - include: swift_key_setup.yml static: no @@ -104,8 +102,8 @@ static: no when: swift_do_sync | bool tags: - - swift-install - swift-config + - swift-rings - name: Flush handlers meta: flush_handlers @@ -116,4 +114,4 @@ - swift_do_sync | bool - not swift_do_setup | bool tags: - - always + - swift-config diff --git a/tasks/swift_proxy_hosts.yml b/tasks/swift_proxy_hosts.yml index cf73fba6..8d0ca62f 100644 --- a/tasks/swift_proxy_hosts.yml +++ b/tasks/swift_proxy_hosts.yml @@ -46,8 +46,6 @@ config_overrides: "{{ swift_proxy_server_conf_overrides }}" config_type: "ini" notify: Restart swift services - tags: - - swift-config # If we've specified a container-sync realm use container-sync-realms.conf - name: "Swift container-sync configuration" @@ -62,5 +60,3 @@ when: > swift_container_sync_realms is defined notify: Restart swift services - tags: - - swift-config diff --git a/tasks/swift_rings_build.yml b/tasks/swift_rings_build.yml index 3a8c0ea6..b2ce7e3b 100644 --- a/tasks/swift_rings_build.yml +++ b/tasks/swift_rings_build.yml @@ -20,6 +20,8 @@ owner: "{{ swift_system_user_name }}" group: "{{ swift_system_group_name }}" mode: "0700" + tags: + - swift-install - name: "Build ring-contents files" template: diff --git a/tasks/swift_rings_post_distribution_check.yml b/tasks/swift_rings_post_distribution_check.yml index 5946c720..e8f160fb 100644 --- a/tasks/swift_rings_post_distribution_check.yml +++ b/tasks/swift_rings_post_distribution_check.yml @@ -36,6 +36,8 @@ owner: "{{ swift_system_user_name }}" group: "{{ swift_system_group_name }}" mode: "0700" + tags: + - swift-install - name: "Ensure contents file matches ring after ring sync for account/container" command: "/etc/swift/scripts/swift_rings_check.py -f /etc/swift/scripts/{{ item[0] }}.contents{% if item[1] %} -r {{ item[1] }} {% endif %}"