Projects
A project is a logical collection of Ansible playbooks.
You can manage playbooks and playbook directories by either placing them manually under the Project Base Path on your server, or by placing your playbooks into a source code management (SCM) system supported by Ascender, including Git and Subversion.
By default, the Project Base Path is /var/lib/ascender/projects.
The Projects page displays the list of the projects that are currently available. The default view is collapsed (Compact) with the project name and its status, but you can use the arrow next to each entry to expand it for more information.


For each project listed, you can get the latest SCM revision (Sync, the refresh icon), edit the project (Edit, the pencil icon), or copy the project attributes (Copy, the copy icon), using the respective icons next to each project. Projects are allowed to be updated while a related job is running. In cases where you have a big project (around 10 GB), disk space on /tmp may be an issue.
Status indicates the state of the project and may be one of the following (you can also filter your view by specific status types):
- Pending: The source control update has been created, but not queued or started yet. Any job (not just source control updates) stays in pending until it is actually ready to be run by the system. Reasons for it not being ready include dependencies that are currently running (so it has to wait until they are done), or not enough capacity to run in the locations it is configured to.
- Waiting: The source control update is in the queue waiting to be executed.
- Running: The source control update is currently in progress.
- Successful: The last source control update for this project succeeded.
- Failed: The last source control update for this project failed.
- Error: The last source control update job failed to run at all. (To be deprecated.)
- Canceled: The last source control update for the project was canceled.
- Never updated: The project is configured for source control, but has never been updated.
- OK: The project is not configured for source control, and is correctly in place. (To be deprecated.)
- Missing: Projects are absent from the project base path of
/var/lib/ascender/projects(applicable for manual or source control managed projects).
Projects of credential type Manual cannot update or schedule source control-based actions without being reconfigured as an SCM type credential.
If deleting items that are used by other work items, a message opens listing the items that are affected by the deletion and prompts you to confirm the deletion. Some screens contain items that are invalid or previously deleted, so they will fail to run. Below is an example of such a message:

Add a new project
To create a new project:
-
Click the Add button, which launches the Create Project window.

-
Enter the appropriate details into the following required fields:
- Name
- Description (optional)
- Organization: The organization the project belongs to. A project belongs to exactly one organization, which is required.
- Execution Environment (optional): Enter the name of the execution environment or search from a list of existing ones to run this project. See Upgrading to execution environments in the upgrade considerations for more information.
- Source Control Type: Select from the drop-down menu list an SCM type associated with this project. The options available in the subsequent section depend on the type you choose. Refer to Manage playbooks manually or Manage playbooks using source control in the subsequent sections for more detail.
- Content Signature Validation Credential: Use this optional field to enable content verification. Specify the GPG key to use for validating the content signature during project sync. If the content has been tampered with, the job will not run. See Project Signing and Verification for more detail.
-
Click Save when done.
The following sections describe the ways projects are sourced in Ascender.
Manage playbooks manually
- Create one or more directories to store playbooks under the Project Base Path (for example,
/var/lib/ascender/projects/). - Create or copy playbook files into the playbook directory.
- Ensure that the playbook directory and files are owned by the same UNIX user and group that the Ascender service runs as.
- Ensure that the permissions are appropriate for the playbook directories and files.
If adding a manual project, each project path inside of the project root folder can only be assigned to one project. If you have trouble adding a project path, check the permissions and SELinux context settings for the project directory and files.
If the base project path has no playbook directory that is not already assigned to another project, either because you have not added any Ansible playbook directories to it or because all of them are assigned to existing projects, you will receive the following message:

Correct this issue by creating the appropriate playbook directories and checking out playbooks from your SCM or otherwise copying playbooks into the appropriate playbook directories.
Manage playbooks using source control
SCM Types - Git and Subversion
To configure playbooks to use source control, in the project Details tab:
-
Select the appropriate option (Git or Subversion) from the Source Control Type drop-down menu list.

-
Enter the appropriate details into the following fields:
- Source Control URL: See an example in the tooltip (the ? help icon).
- Source Control Branch/Tag/Commit (Revision # for Subversion): Optionally enter the SCM branch, tags, commit hashes, arbitrary refs, or revision number (if applicable) from the source control (Git or Subversion) to checkout. Some commit hashes and refs may not be available unless you also provide a custom refspec in the next field. If left blank, the default is HEAD, which is the last checked out Branch/Tag/Commit for this project.
- Source Control Refspec: This field is an option specific to git source control, and only advanced users familiar and comfortable with git should specify which references to download from the remote repository. For more detail, see job branch overriding.
- Source Control Credential: If authentication is required, select the appropriate source control credential.
-
In the Options, optionally select the launch behavior, if applicable.
- Clean: Removes any local modifications prior to performing an update.
- Delete: Deletes the local repository in its entirety prior to performing an update. Depending on the size of the repository this may significantly increase the amount of time required to complete an update.
- Track submodules: Tracks the latest commit. See more details in the tooltip (the ? help icon).
- Update Revision on Launch: Updates the revision of the project to the current revision in the remote source control, as well as caches the roles directory from Galaxy or Collections. Ascender ensures that the local revision matches and that the roles and collections are up-to-date with the last update. Also, to avoid job overflows if jobs are spawned faster than the project can sync, selecting this allows you to configure a Cache Timeout to cache prior project syncs for a certain number of seconds.
- Allow Branch Override: Allows a job template or an inventory source that uses this project to launch with a specified SCM branch or revision other than that of the project's. For more detail, see job branch overriding.
- Reuse Downloaded Requirements: Selected by default. Reuses the roles and collections downloaded for an earlier revision of the project while its requirements files and the organization's Galaxy credentials are unchanged, instead of downloading them in every update. See Galaxy for when they are downloaded again.

-
Click Save to save your project.
Using a GitHub link offers an easy way to use a playbook. To help get you started, use the gather_facts.yml file available at https://github.com/ctrliq/ascender-playbooks.git.
This link offers a very similar playbook to the one created manually in the Quick Start. Using it will not alter or harm your system in any way.
SCM Type - Remote Archive
Playbooks using a remote archive allow projects to be provided based on a build process that produces a versioned artifact, or release, containing all the requirements for that project in a single archive.
To configure playbooks to use a remote archive, in the project Details tab:
-
Select Remote Archive from the Source Control Type drop-down menu list.
-
Enter the appropriate details into the following fields:
- Source Control URL: Requires a URL to a remote archive, such as a GitHub Release or a build artifact stored in Artifactory, and unpacks it into the project path for use.
- Source Control Credential: If authentication is required, select the appropriate source control credential.
-
In the Options, optionally select the launch behavior, if applicable.
- Clean: Removes any local modifications prior to performing an update.
- Delete: Deletes the local repository in its entirety prior to performing an update. Depending on the size of the repository this may significantly increase the amount of time required to complete an update.
- Update Revision on Launch: Not recommended, as this option updates the revision of the project to the current revision in the remote source control, as well as caches the roles directory from Galaxy or Collections.
- Allow Branch Override: Not recommended, as this option allows a job template that uses this project to launch with a specified SCM branch or revision other than that of the project's.
- Reuse Downloaded Requirements: Selected by default. Reuses the roles and collections downloaded for an earlier revision of the project while its requirements files and the organization's Galaxy credentials are unchanged.

-
Click Save to save your project.
Since this SCM type is intended to support the concept of unchanging artifacts, it is advisable to disable Galaxy integration (for roles, at minimum).
Updating projects from source control
-
Update an existing SCM-based project by selecting the project and clicking the Sync (refresh) icon.

-
Click the project's status under the Status column to get further details about the update process.


Immediately after adding a project set up to use source control, a "Sync" starts that fetches the project details from the configured source control.
Work with Permissions
The set of permissions assigned to this project (role-based access controls) that provide the ability to read, modify, and administer projects, inventories, job templates, and other Ascender elements are privileges.
You can access the project permissions from the Access tab next to the Details tab. This screen displays a list of users that currently have permissions to this project. The list may be sorted and searched by Username, First Name, or Last Name.

Add Permissions
-
In the Access tab, click the Add button.
-
Select a user or team to add and click Next.
-
Select one or more users or teams from the list by clicking the check boxes next to the names to add them as members, and click Next.

In this example, two users have been selected to be added.
-
Select the roles you want the selected users or teams to have. Be sure to scroll down for a complete list of roles. Different resources have different options available.

-
Click the Save button to apply the roles to the selected users or teams and to add them as members.
The Add Users/Teams window closes to display the updated roles assigned for each user and team.

To remove roles for a particular user, click the disassociate (x) button next to its resource.

This launches a confirmation dialog, asking you to confirm the disassociation.

Work with Notifications
Clicking the Notifications tab allows you to review any notification integrations you have set up.

Use the toggles to enable or disable the notifications to use with your particular project. For more detail, see Enable and Disable Notifications.
If no notifications have been set up, you can configure them from the Notifications link in the left navigation bar to create a new notification.

Refer to Notification Types for additional details on configuring various notification types.
Work with Job Templates
Clicking Job Templates allows you to add and review the job templates that use this project.

Click the recent jobs that ran using that template to see its details and other useful information. You can sort this list by various criteria, and perform a search to filter the templates of interest.

From this view, you can also launch (Launch, the rocket icon), edit (Edit, the pencil icon), or copy (Copy, the copy icon) the template configuration.
Work with Schedules
Clicking Schedules allows you to review any schedules set up for this project.

Schedule a Project
To schedule a project run, click the Schedules tab.
- If schedules are already set up, review, edit, or enable/disable your schedule preferences.
- If schedules have not been set up, refer to Schedules for more information.
Ansible Galaxy Support
At the end of a project update, Ascender searches for a file called requirements.yml in the roles directory, located at <project-top-level-directory>/roles/requirements.yml. If this file is found, the following command automatically runs:
ansible-galaxy role install -r roles/requirements.yml -p <project-specific cache location>/requirements_roles -vvv
This file allows you to reference Galaxy roles or roles within other repositories which can be checked out in conjunction with your own project. The addition of this Ansible Galaxy support eliminates the need to create git submodules for achieving this result. Given that SCM projects (along with roles and collections) are pulled into and executed from a private job environment, a <private job directory> specific to the project within /tmp is created by default. However, you can specify another Job Execution Path based on your environment in the Jobs settings tab of the Settings window:

The cache directory is a subdirectory inside the global projects folder. The content may be copied from the cache location to the <job private directory>/requirements_roles location.
By default, Ascender has a system-wide setting that allows roles to be dynamically downloaded from the roles/requirements.yml file for SCM projects. You may turn off this setting in the Jobs settings screen of the Settings menu by switching the Enable Role Download toggle button to OFF.

Whenever a project sync runs, Ascender determines if the project source and any roles from Galaxy and/or Collections are out of date with the project. Project updates download the roles inside the update.
If jobs need to pick up a change made to an upstream role, updating the project ensures this happens. A change to the role means that a new commit was pushed to the provision-role source control. To make this change take effect in a job, you do not need to push a new commit to the playbooks repo, but you do need to update the project, which downloads roles to a local cache. For instance, say you have two git repositories in source control. The first one is playbooks and the project in Ascender points to this URL. The second one is provision-role and it is referenced by the roles/requirements.yml file inside of the playbooks git repo.
In short, jobs would download the most recent roles before every job run. Roles and collections are locally cached for performance reasons, and you need to select Update Revision on Launch in the project's source control Options to ensure that the upstream role is re-downloaded before each job run:

Requirements that come from Galaxy or a private automation hub are installed once and reused by later project revisions for as long as the requirements files and the organization's Galaxy credentials stay the same, so a commit that does not touch them does not download them again. Syncs that run for a job or workflow, such as Update Revision on Launch, reuse them. Syncs you start, scheduled syncs, and relaunches always download fresh copies and replace the reused ones, so use one of these to pick up a new release of a requirement that is not pinned to a version. Requirements that point to a source control repository (like provision-role above), a URL, a file, or a directory in the project are never reused and are downloaded by every update. To download requirements in every update instead, clear the Reuse Downloaded Requirements option of the project.
The update happens much earlier in the process than the sync, so this surfaces errors and details faster and in a more logical place.
For more information and examples on the syntax of the requirements.yml file, refer to the role requirements section in the Ansible documentation.
If there are any directories that should specifically be exposed, you can specify those in the Paths to expose to isolated jobs field of the Jobs settings, or with the ASCENDER_ISOLATION_SHOW_PATHS setting in a PATCH to /api/v2/settings/jobs/:
{"ASCENDER_ISOLATION_SHOW_PATHS": ["/list/of/", "/paths"]}
The primary file you may want to add to ASCENDER_ISOLATION_SHOW_PATHS is /var/lib/awx/.ssh, if your playbooks need to use keys or settings defined there.
In the user interface, you can configure these settings in the Jobs settings window.

Collections Support
Ascender supports project-specific Ansible collections in job runs. If you specify a collections requirements file in the SCM at collections/requirements.yml, Ascender installs the collections in that file in the implicit project sync before a job run.
By default, Ascender has a system-wide setting that allows collections to be dynamically downloaded from the collections/requirements.yml file for SCM projects. You may turn off this setting in the Jobs settings tab of the Settings menu by switching the Enable Collection(s) Download toggle button to OFF.

Roles and collections are locally cached for performance reasons, and you need to select Update Revision on Launch in the project's source control Options to ensure this:

For more information on collections, refer to Using Collections.