def managed_users
      Dir.glob("#{USER_DIR}/*.yml").map do |file|
        YAML.load_file(file).map do |role, users|
          users.map do |user|
            User.new(
              role: role,
              user: user.keys.first,
              host: user['host'] || HOST_ALL
            )
          end
        end
      end.flatten
    end
def managed_users
      Dir.glob("#{USER_DIR}/*.yml").map do |file|
        YAML.load_file(file).map do |role, users|
          users.map do |user|
            User.new(
              role: role,
              user: user.keys.first,
              host: user['host'] || HOST_ALL
            )
          end
        end
      end.flatten
    end
rubocop:disable Metrics/MethodLength