File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ set(SSG_VENDOR "ssgproject" CACHE STRING "Specify the XCCDF 1.2 vendor string.")
4444# Define Install Directories, where built content will be stored.
4545set (SSG_ANSIBLE_ROLE_INSTALL_DIR "${CMAKE_INSTALL_DATADIR} /scap-security-guide/ansible" )
4646set (SSG_ANSIBLE_PER_RULE_PLAYBOOKS_INSTALL_DIR "${SSG_ANSIBLE_ROLE_INSTALL_DIR} /rule_playbooks" )
47+ set (SSG_ANSIBLE_ROLES_INSTALL_DIR "${SSG_ANSIBLE_ROLE_INSTALL_DIR} /roles" )
4748set (SSG_BASH_ROLE_INSTALL_DIR "${CMAKE_INSTALL_DATADIR} /scap-security-guide/bash" )
4849set (SSG_CONTENT_INSTALL_DIR "${CMAKE_INSTALL_DATADIR} /xml/scap/ssg/content" )
4950set (SSG_GUIDE_INSTALL_DIR "${CMAKE_INSTALL_DOCDIR} /guides" )
Original file line number Diff line number Diff line change @@ -915,6 +915,18 @@ macro(ssg_build_product PRODUCT)
915915 "
916916 )
917917 endif ()
918+ if (SSG_ANSIBLE_PLAYBOOKS_ENABLED AND SSG_ANSIBLE_ROLES_ENABLED)
919+ if (NOT IS_ABSOLUTE "${SSG_ANSIBLE_ROLES_INSTALL_DIR} " )
920+ set (DESTINATION_DIR "${CMAKE_INSTALL_PREFIX} /${SSG_ANSIBLE_ROLES_INSTALL_DIR} " )
921+ else ()
922+ set (DESTINATION_DIR "${SSG_ANSIBLE_ROLES_INSTALL_DIR} " )
923+ endif ()
924+
925+ install (
926+ DIRECTORY "${CMAKE_BINARY_DIR} /ansible_roles/"
927+ DESTINATION "${DESTINATION_DIR} "
928+ )
929+ endif ()
918930
919931 if (ENABLE_SCAPVAL13)
920932 add_test (
You can’t perform that action at this time.
0 commit comments